forked from premiere/premiere-libtorrent
fixed invariant check in peer_connection
This commit is contained in:
parent
5f6351146a
commit
7733f74d7a
|
@ -3881,7 +3881,7 @@ namespace libtorrent
|
|||
TORRENT_ASSERT(m_disconnect_started);
|
||||
}
|
||||
|
||||
if (!m_disconnect_started)
|
||||
if (!m_disconnect_started && m_initialized)
|
||||
{
|
||||
// none of this matters if we're disconnecting anyway
|
||||
if (t->is_finished())
|
||||
|
|
Loading…
Reference in New Issue