net: listen after connecting to outbound.
This commit is contained in:
parent
664cddac42
commit
c38a4fc031
@ -293,8 +293,6 @@ Pool.prototype._connect = co(function* connect() {
|
||||
if (this.connected)
|
||||
return;
|
||||
|
||||
yield this.listen();
|
||||
|
||||
if (this.address.isNull() && !this.options.proxy) {
|
||||
try {
|
||||
ip = yield this.getIP();
|
||||
@ -318,6 +316,8 @@ Pool.prototype._connect = co(function* connect() {
|
||||
|
||||
this.fillOutbound();
|
||||
|
||||
yield this.listen();
|
||||
|
||||
this.connected = true;
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user