fixed assert when shutting down with DHT enabled

This commit is contained in:
Arvid Norberg 2010-10-19 03:43:11 +00:00
parent 4b6a73417d
commit 517aaf526b
1 changed files with 5 additions and 1 deletions

View File

@ -1072,7 +1072,11 @@ namespace aux {
if (m_upnp) m_upnp->close();
if (m_natpmp) m_natpmp->close();
#ifndef TORRENT_DISABLE_DHT
if (m_dht) m_dht->stop();
if (m_dht)
{
m_dht->stop();
m_dht = 0;
}
m_dht_announce_timer.cancel(ec);
#endif
m_timer.cancel(ec);