mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
errnoException must be done immediately
This commit is contained in:
parent
99ad0561c0
commit
74d076caf1
1 changed files with 2 additions and 1 deletions
|
@ -926,8 +926,9 @@ function listen(self, 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue