JoystreamClassic / joystream-node

Node bindings for joystream libtorrent extension
MIT License
0 stars 3 forks source link

session: guard against processing alerts of removed torrents #79

Closed mnaamani closed 7 years ago

mnaamani commented 7 years ago

Before processing every torrent alert we make sure the torrent handle is valid, to handle case where torrent has been removed and the alerts are not yet processed.

mnaamani commented 7 years ago

Thats is very possible. Ok by checking to see if the infoHash is valid .. I take it you mean if it is all zeros? (In addition to being in the torrents map)

bedeho commented 7 years ago

Yes