aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/sockets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index b5a2580b..12c54571 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -18,7 +18,7 @@ export const emit = (uid, type, data) => {
for (let i = subscriptions.length - 1; i >= 0; i--) {
let s = subscriptions[i];
- if (s.hash === data.hash) {
+ if (s.invoice && s.invoice.hash === data.hash) {
s.ws.send(JSON.stringify({ type, data }));
}
}