diff options
Diffstat (limited to 'lib/net.js')
-rw-r--r-- | lib/net.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js index 5bf2f292fb..cdabe6e798 100644 --- a/lib/net.js +++ b/lib/net.js @@ -961,7 +961,9 @@ function afterConnect(status, handle, req, readable, writable) { return; } - assert(handle === self._handle, 'handle != self._handle'); + // Update handle if it was wrapped + // TODO(indutny): assert that the handle is actually an ancestor of old one + handle = self._handle; debug('afterConnect'); |