diff --git a/lib/repl.js b/lib/repl.js index 22542c6206..52de3974a4 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -111,7 +111,7 @@ REPLServer.prototype.parseREPLKeyword = function (cmd) { self.displayPrompt(); return true; case ".exit": - self.stream.end(); + self.stream.destroy(); return true; case ".help": self.stream.write(".break\tSometimes you get stuck in a place you can't get out... This will get you out.\n");