Skip to content

Commit

Permalink
[fix] server may be auto-closed by node ignore if it is closed already
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Jan 5, 2012
1 parent 41105d1 commit 2a1cdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net.js
Expand Up @@ -150,7 +150,7 @@ module.exports = function overrideNet() {
restoreListeningListeners();

if (err.code !== 'EADDRINUSE') {
self.close();
try { self.close(); } catch (e) { }
return self.emit('error', err);
}

Expand Down

0 comments on commit 2a1cdc9

Please sign in to comment.