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)
|
if (this.connected)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
yield this.listen();
|
|
||||||
|
|
||||||
if (this.address.isNull() && !this.options.proxy) {
|
if (this.address.isNull() && !this.options.proxy) {
|
||||||
try {
|
try {
|
||||||
ip = yield this.getIP();
|
ip = yield this.getIP();
|
||||||
@ -318,6 +316,8 @@ Pool.prototype._connect = co(function* connect() {
|
|||||||
|
|
||||||
this.fillOutbound();
|
this.fillOutbound();
|
||||||
|
|
||||||
|
yield this.listen();
|
||||||
|
|
||||||
this.connected = true;
|
this.connected = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user