From 1099320e501832108081ae4d3e64bc8964ae1cba Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sun, 17 Sep 2017 14:32:06 +0200 Subject: [PATCH] [enh] #1084 WS2P: do not share empty heads --- app/modules/bma/lib/bma.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/bma/lib/bma.ts b/app/modules/bma/lib/bma.ts index 160240eec..a2f37c666 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) { -- GitLab