Skip to content

Commit

Permalink
Merge pull request #525 from FlowFuse/524-send-duplicated
Browse files Browse the repository at this point in the history
UI Template: Ensure "widget-send" events are cleared on socket connection loss
  • Loading branch information
joepavitt authored Jan 26, 2024
2 parents a273932 + 76ff960 commit cfb66f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodes/config/ui_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ module.exports = function (RED) {
try {
socket.removeAllListeners('widget-load')
} catch (_error) { /* do nothing */ }
try {
socket.removeAllListeners('widget-send')
} catch (_error) { /* do nothing */ }
try {
socket.removeAllListeners('disconnect')
} catch (_error) { /* do nothing */ }
Expand Down

0 comments on commit cfb66f1

Please sign in to comment.