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

Commit e42ae9f0 by Matt Broadstone

remove needless error checking on disconnect

1 parent bd74b408
Showing with 0 additions and 5 deletions
......@@ -93,11 +93,6 @@ ConnectionManager.prototype.disconnect = function(connection) {
}
return new Promise(function (resolve, reject) {
connection.on('error', function(err) {
// TODO: error checking
reject();
});
connection.on('end', resolve);
connection.close();
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!