diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-22 13:11:02 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-22 13:11:02 +0400 |
commit | daead5f5bb6dc9ce4fc5fd984bd48deecffe1dae (patch) | |
tree | f2f4f6ef4b7991c0dd301b9b668001de2c61344b /lib | |
parent | 8eb1edc8ea405c55b06e76111a4bc30fe16bb7fb (diff) |
win: fix simple/test-tls-client-abort.js
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net_uv.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/net_uv.js b/lib/net_uv.js index 8e000f68159..d45346e6f3e 100644 --- a/lib/net_uv.js +++ b/lib/net_uv.js @@ -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; |