ssbc / ssb-lan

SSB plugin for discovery of other peers in the same LAN
MIT License
7 stars 1 forks source link

Automatically call stop() on ssb.close() #6

Open christianbundy opened 4 years ago

christianbundy commented 4 years ago

I'm running ssb.close() to close my peer, but when this plugin is loaded the process stays open. My current workaround is ssb.lan.stop(); ssb.close() but I think it might be nice to hook ssb.close() similar to other plugins (e.g. SSB-Serve-Blobs (https://github.com/ssbc/ssb-serve-blobs/commit/ff1392871ad4a1d7c46915dd35f545b408ff659a)).

staltz commented 4 years ago

Agreed!