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

[fix] #1102 Take care of WS2P/heads message

parent 134030e2
Branches
Tags
No related merge requests found
......@@ -57,7 +57,7 @@ export class WS2PServerMessageHandler implements WS2PMessageHandler {
const raw = dto.getRawSigned()
await this.server.writeRawPeer(raw)
}
else if (json.body.heads) {
else if (json.body.heads && typeof json.body.heads === "object" && json.body.heads.length !== undefined) {
await this.cluster.headsReceived(json.body.heads || [])
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment