vankasteelj / torrent-tracker

Library to query both UDP and HTTP trackers
21 stars 4 forks source link

timeout undefined #1

Open telunc opened 7 years ago

telunc commented 7 years ago

I'm crashing on this line

/root/project/node_modules/torrent-tracker/index.js:132
            clearTimeout(self.transactionCache[transactionId].timeout);
                                                             ^

TypeError: Cannot read property 'timeout' of undefined
    at SendWrap.callback (/root/project/node_modules/torrent-tracker/index.js:132:62)
    at SendWrap.afterSend [as oncomplete] (dgram.js:409:8)
vankasteelj commented 7 years ago

Indeed, that does happen and I still havent figured out why. Note that I'm no longer actively maintaining this, because I switched my main torrent engine to webtorrent, hence I'm using https://github.com/webtorrent/bittorrent-tracker