不要怂,就是干,撸起袖子干!

Commit 02941b30 by José Moreira

Use `connection._protocol._ended` state

1 parent 5f901b1d
Showing with 1 additions and 1 deletions
......@@ -74,7 +74,7 @@ ConnectionManager.prototype.disconnect = function(connection) {
});
};
ConnectionManager.prototype.validate = function(connection) {
return connection && connection.state !== 'disconnected';
return connection && ! connection._protocol._ended;
};
module.exports = ConnectionManager;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!