Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed `repl()` bug: ensure server exists before closing it

  • Loading branch information...
commit d770601660e6170dae806a6019ef0b16053346f0 1 parent df87149
@tj tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/plugins/repl.js
View
2  lib/plugins/repl.js
@@ -86,7 +86,7 @@ exports = module.exports = function(){
sockets.forEach(function(sock){
sock.fd && sock.end();
});
- if (server.fd) server.close();
+ if (server && server.fd) server.close();
});
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.