bunsenbrowser / bunsen

🔥 Bunsen Browser provides easy to use offline P2P application and file distribution that is verifiable on Android devices. https://bunsenbrowser.github.io/
117 stars 7 forks source link

Fix crashing on disconnected web socket client (DatArchive.watch) #78

Closed rjcorwin closed 5 years ago

rjcorwin commented 5 years ago

In an app you do a watch, you connect as a web sockets client. Then reload the app to subscribe again. Now the server thinks there are two browsers subscribed. Write a file, now the server tries to notifies two clients. When it tries to notify the client that no longer exists, it throws an error. This PR protects against that.