Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-07-22 13:11:02 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-07-22 13:11:02 +0400
commitdaead5f5bb6dc9ce4fc5fd984bd48deecffe1dae (patch)
treef2f4f6ef4b7991c0dd301b9b668001de2c61344b /lib
parent8eb1edc8ea405c55b06e76111a4bc30fe16bb7fb (diff)
win: fix simple/test-tls-client-abort.js
Diffstat (limited to 'lib')
-rw-r--r--lib/net_uv.js7
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;