mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
errnoException must be done immediately
This commit is contained in:
@@ -888,8 +888,9 @@ Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
|
||||
if (!self._handle) {
|
||||
self._handle = createServerHandle(address, port, addressType, fd);
|
||||
if (!self._handle) {
|
||||
var error = errnoException(errno, 'listen');
|
||||
process.nextTick(function() {
|
||||
self.emit('error', errnoException(errno, 'listen'));
|
||||
self.emit('error', error);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user