Closed Trott closed 4 years ago
@mafintosh Sorry for the ping, but any chance this or some other equivalent change can get in soon and be released? This is a race condition that is sometimes triggered in CITGM.
It’s on my todo for tmw now
/re-ping! We're down to just three errors in CITGM on the upcoming LTS branch and this is one of them. Would love to get it fixed soon!
Thanks @Trott ! I didn't realise you actually sent a PR and not just the issue until I pushed a similar fix.
Anyways should be fixed now
The 'ready' event sets up an interval timer that is cleared in
destroy()
. However, in some situations, it is possible to for the interval to be created afterdestroy()
has run, resulting in an interval timer that is never cleared, and thus an app that does not exit when it is supposed to. This change fixes the issue and adds a test for it.Refs: https://github.com/mafintosh/torrent-stream/issues/198