mirror of https://github.com/node-red/node-red.git
Clear pending messages when removing connection
parent
9201e6bd9e
commit
27179c788f
|
|
@ -314,6 +314,8 @@ function addActiveConnection(connection) {
|
|||
runtimeAPI.comms.addConnection({client: connection});
|
||||
}
|
||||
function removeActiveConnection(connection) {
|
||||
// Clear pending messages.
|
||||
connection.stack = []
|
||||
for (var i=0;i<activeConnections.length;i++) {
|
||||
if (activeConnections[i] === connection) {
|
||||
activeConnections.splice(i,1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue