ssbc / ssb-gossip

Schedule connections randomly with a peerlist constructed from config, multicast UDP announcements, feed announcements, and API-calls
MIT License
10 stars 3 forks source link

gracefully handle ping callback with no error #10

Closed ahdinosaur closed 5 years ago

ahdinosaur commented 5 years ago

fixes error

TypeError: Cannot read property 'name' of null
    at /home/dinosaur/repos/ssbc/patchwork/node_modules/ssb-gossip/index.js:345:20
    at /home/dinosaur/repos/ssbc/patchwork/node_modules/muxrpc/pull-weird.js:18:14
    at /home/dinosaur/repos/ssbc/patchwork/node_modules/muxrpc/pull-weird.js:10:5
    at PacketStreamSubstream.weird.read (/home/dinosaur/repos/ssbc/patchwork/node_modules/muxrpc/pull-weird.js:37:15)
    at PacketStream._onstream (/home/dinosaur/repos/ssbc/patchwork/node_modules/packet-stream/index.js:200:12)
    at PacketStream.write (/home/dinosaur/repos/ssbc/patchwork/node_modules/packet-stream/index.js:135:41)
    at /home/dinosaur/repos/ssbc/patchwork/node_modules/muxrpc/pull-weird.js:56:15
    at /home/dinosaur/repos/ssbc/patchwork/node_modules/pull-stream/sinks/drain.js:24:37
    at /home/dinosaur/repos/ssbc/patchwork/node_modules/pull-goodbye/node_modules/pull-stream/throughs/filter.js:17:11
    at Object.cb (/home/dinosaur/repos/ssbc/patchwork/node_modules/packet-stream-codec/index.js:111:11)
dominictarr commented 5 years ago

merged into 1.0.7