ssbc / ssb-blobs

blob gossiping ssb-subprotocol
MIT License
12 stars 11 forks source link

Ignore local client connection #2

Closed clehner closed 7 years ago

clehner commented 7 years ago

Don't replicate blobs if the remote id is the same as a local id: assume that the RPC is a CLI or master client.

I found this while debugging why a RPC instance wasn't closing properly, and it turned out to be because ssb-blobs was calling an RPC method while the PacketStream instance was being destroyed, resulting in deadlock. This should probably be fixed in packet-stream or muxrpc somehow, but fixing it here makes the problem that I was seeing go away, for now.

dominictarr commented 7 years ago

merged in 0.1.8