forked from premiere/premiere-libtorrent
fixed assert when shutting down with DHT enabled
This commit is contained in:
parent
4b6a73417d
commit
517aaf526b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue