From 211321a91400efe435f37169e4c459c410d43dc3 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 3 Oct 2018 16:46:13 -0400 Subject: [PATCH] fix event --- lib/modules/webserver/server.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index ad977c129..655cfb6aa 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -103,10 +103,11 @@ class Server { wss.clients.forEach(function (client) { client.send('outputDone'); }); - self.events.on('outputError', () => { - wss.clients.forEach(function (client) { - client.send('outputError'); - }); + }); + + self.events.on('outputError', () => { + wss.clients.forEach(function (client) { + client.send('outputError'); }); });