diff --git a/cluster-master.js b/cluster-master.js index 17894d9..eaa4344 100644 --- a/cluster-master.js +++ b/cluster-master.js @@ -210,7 +210,7 @@ function setupRepl () { sock.repl = r - r.on('end', function () { + r.on('exit', function () { connections -- replEnded = true if (!ended) sock.end()