Skip to content

Commit

Permalink
win: fix simple/test-tls-client-abort.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jul 22, 2011
1 parent 8eb1edc commit daead5f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/net_uv.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,16 @@ Socket.prototype.connect = function(port /* [host], [cb] */) {

function afterConnect(status, handle, req) {
var self = handle.socket;
assert.equal(handle, self._handle);

debug("afterConnect");

// callback may come after call to destroy
if (self.destroyed) {
return;
}

assert.equal(handle, self._handle);

debug("afterConnect");

assert.ok(self._connecting);
self._connecting = false;

Expand Down

0 comments on commit daead5f

Please sign in to comment.