repl: don't write a newline on the readline 'end' event

In the case of the input stream *actually* having been closed, then we
can't write to a closed socket.

Fixes test/simple/test-repl.js
pull/24503/head
Nathan Rajlich 2012-03-27 21:40:03 -07:00
parent eb1ff03418
commit 48bbdde66b
1 changed files with 0 additions and 1 deletions

View File

@ -176,7 +176,6 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
rli.setPrompt(self.prompt);
rli.on('end', function() {
self.rli.output.write('\n');
self.emit('exit');
});