win: fix simple/test-tls-client-abort.js

This commit is contained in:
Ryan Dahl 2011-07-22 02:11:02 -07:00
parent 8eb1edc8ea
commit daead5f5bb

View File

@ -440,15 +440,16 @@ Socket.prototype.connect = function(port /* [host], [cb] */) {
function afterConnect(status, handle, req) { function afterConnect(status, handle, req) {
var self = handle.socket; var self = handle.socket;
assert.equal(handle, self._handle);
debug("afterConnect");
// callback may come after call to destroy // callback may come after call to destroy
if (self.destroyed) { if (self.destroyed) {
return; return;
} }
assert.equal(handle, self._handle);
debug("afterConnect");
assert.ok(self._connecting); assert.ok(self._connecting);
self._connecting = false; self._connecting = false;