fixed invariant check in peer_connection

This commit is contained in:
Arvid Norberg 2008-10-05 22:09:33 +00:00
parent 5f6351146a
commit 7733f74d7a
1 changed files with 1 additions and 1 deletions

View File

@ -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())