Skip to content
Snippets Groups Projects
Commit 1099320e authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] #1084 WS2P: do not share empty heads

parent df6e1c5f
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment