Connection: add guard in destroy()

fork
Brian White 10 years ago
parent bb79cc784f
commit c94cc42a84

@ -243,7 +243,7 @@ Connection.prototype.serverSupports = function(cap) {
Connection.prototype.destroy = function() {
this._queue = [];
this._curReq = undefined;
this._sock.destroy();
this._sock && this._sock.destroy();
};
Connection.prototype.end = function() {

Loading…
Cancel
Save