rain
rain copied to clipboard
fix torrent.NotifyComplete not notified after verification done
When start a torrent, t.completeC will be a value, and t.NotifyComplete return this channel value.
Then after t.handleVerificationDone, t.completeC may recreated with new value, but we still listen on old channel value.
So we will miss completeC close event.