fix: reset wishlist when stopping torrent (#6869)

This commit is contained in:
Yat Ho 2024-05-30 03:35:07 +08:00 committed by GitHub
parent d467fa1f7f
commit a18fca5950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -639,6 +639,7 @@ private:
is_running = false;
remove_all_peers();
wishlist.reset();
for (auto& [sockaddr, peer_info] : connectable_pool)
{
peer_info->destroy_handshake();