1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Stop sending messages to ws connections that have errored

Fixes #708
This commit is contained in:
Nick O'Leary 2015-07-30 22:09:01 +01:00
parent 6b03379e4e
commit 5193d7bddb

View File

@ -167,6 +167,8 @@ function publishTo(ws,topic,data) {
try {
ws.send(msg);
} catch(err) {
removeActiveConnection(ws);
removePendingConnection(ws);
log.warn(log._("comms.error-send",{message:err.toString()}));
}
}