Skip to content

Commit 3a219de

Browse files
committed
net_uv: resume on closed net.Socket shouldn't crash
1 parent 3cd694c commit 3a219de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/net_uv.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ Socket.prototype.pause = function() {
167167

168168

169169
Socket.prototype.resume = function() {
170-
this._handle.readStart();
170+
if (this._handle) {
171+
this._handle.readStart();
172+
}
171173
};
172174

173175

0 commit comments

Comments
 (0)