diff --git a/app/modules/bma/lib/bma.ts b/app/modules/bma/lib/bma.ts index 160240eec5f75e7fb68893f2798997fe73fb0326..a2f37c6665d6cf439614ee4cfe12421e7eeda59c 100644 --- a/app/modules/bma/lib/bma.ts +++ b/app/modules/bma/lib/bma.ts @@ -183,7 +183,7 @@ export const bma = function(server:Server, interfaces:NetworkInterface[], httpLo wssPeer.broadcast(JSON.stringify(peerResult)); } // Broadcast heads - else if (data.ws2p === 'heads') { + else if (data.ws2p === 'heads' && data.added.length) { wssHeads.broadcast(JSON.stringify(data.added)); } } catch (e) {