Commit 3c12fc1b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: websocket error made the app crash

parent e01a1850
......@@ -71,7 +71,13 @@ module.exports = function(dbConf, overConf, interfaces, httpLogs) {
});
});
wssEvents.broadcast = (data) => wssEvents.clients.forEach((client) => client.send(data));
wssEvents.broadcast = (data) => wssEvents.clients.forEach((client) => {
try {
client.send(data);
} catch (e) {
console.log(e);
}
});
// Forward blocks & peers
webminCtrl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment