mirror of https://github.com/nodejs/node.git
errnoException must be done immediately
parent
99ad0561c0
commit
74d076caf1
|
@ -926,8 +926,9 @@ function listen(self, address, port, addressType, backlog, fd) {
|
||||||
if (!self._handle) {
|
if (!self._handle) {
|
||||||
self._handle = createServerHandle(address, port, addressType, fd);
|
self._handle = createServerHandle(address, port, addressType, fd);
|
||||||
if (!self._handle) {
|
if (!self._handle) {
|
||||||
|
var error = errnoException(errno, 'listen');
|
||||||
process.nextTick(function() {
|
process.nextTick(function() {
|
||||||
self.emit('error', errnoException(errno, 'listen'));
|
self.emit('error', error);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue