make sure session cleanup releases all its references to torrents

This commit is contained in:
arvidn 2019-04-22 16:38:16 +02:00 committed by Arvid Norberg
parent 8b925b8576
commit ba731ef0cf
1 changed files with 6 additions and 0 deletions

View File

@ -6090,6 +6090,12 @@ namespace aux {
t.second->abort();
}
m_torrents.clear();
#if !defined TORRENT_DISABLE_ENCRYPTION
m_obfuscated_torrents.clear();
#endif
#if TORRENT_ABI_VERSION == 1
m_uuids.clear();
#endif
#if defined TORRENT_ASIO_DEBUGGING
FILE* f = fopen("wakeups.log", "w+");