fixes #234. properly shuts down the disk io thread

This commit is contained in:
Arvid Norberg
2007-12-24 08:15:10 +00:00
parent 44735a425f
commit e0d1951fac
4 changed files with 20 additions and 7 deletions

View File

@@ -2195,6 +2195,11 @@ namespace detail
#endif
m_checker_thread->join();
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
(*m_logger) << time_now_string() << " waiting for disk io thread\n";
#endif
m_disk_thread.join();
TORRENT_ASSERT(m_torrents.empty());
TORRENT_ASSERT(m_connections.empty());
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)