From ad5fa5e538601930ceb4d9196bfcc6fde1d29179 Mon Sep 17 00:00:00 2001 From: sylvain-hamel Date: Fri, 21 Mar 2014 16:37:41 -0400 Subject: [PATCH] fix(web-server): implement a timeout on webServer.close() Closes #952 --- lib/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index c400e871f..d4bd6b452 100644 --- a/lib/server.js +++ b/lib/server.js @@ -201,9 +201,9 @@ var start = function(injector, config, launcher, globalEmitter, preprocess, file }); var removeAllListenersDone = false; - var removeAllListeners = function(){ + var removeAllListeners = function() { // make sure we don't execute cleanup twice - if (removeAllListenersDone){ + if (removeAllListenersDone) { return; } removeAllListenersDone = true;