net_uv: resume on closed net.Socket shouldn't crash

pull/22966/head
Ryan Dahl 2011-08-11 16:41:53 -07:00
parent 3cd694c9f3
commit 3a219de586
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ Socket.prototype.pause = function() {
Socket.prototype.resume = function() {
this._handle.readStart();
if (this._handle) {
this._handle.readStart();
}
};