peer: minor.

This commit is contained in:
Christopher Jeffrey 2016-07-26 12:42:31 -07:00
parent 7b9eb8b4f2
commit c085d446ab
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -642,6 +642,7 @@ Peer.prototype.destroy = function destroy() {
return;
this.destroyed = true;
this.connected = false;
this.socket.destroy();
this.socket = null;
this.emit('close');