Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDestroy functionality broken when torrent running #589
Comments
feross
added a commit
to mafintosh/k-rpc-socket
that referenced
this issue
Jan 28, 2016
It seems that it’s possible for ‘message’ events to arrive on the socket even after socket.close() is called. I guess this is why we have a ‘close’ event. Still, I think we should suppress messages that arrive after destroy() was called. This surfaced in a webtorrent issue: webtorrent/webtorrent#589
Merged
This comment has been minimized.
This comment has been minimized.
|
Thanks for the issue. I think I figured out the source of the error. It's the new version of PR sent upstream. |
This comment has been minimized.
This comment has been minimized.
|
And just like that, it's fixed! Re-install webtorrent to get the fix. |
This comment has been minimized.
This comment has been minimized.
|
Awesome, thanks!
|
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems that destroying the torrent doesn't stop the DHT events from being emitted, resulting in actions on a destroyed torrent and an error thrown.
Running
torrent.destroy()on a running torrent may cause the following error: