From 41c981d826b34cc4572e4615b52416335ed7a505 Mon Sep 17 00:00:00 2001 From: seebees Date: Thu, 1 Jan 2015 18:14:12 -0800 Subject: [PATCH] REPL emits `exit` not `end` In both v0.8 and v0.10 --- cluster-master.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()