fixed typo

This commit is contained in:
Arvid Norberg 2008-01-17 21:25:19 +00:00
parent 4b3ba58ad2
commit 4a92dae541
1 changed files with 1 additions and 1 deletions

View File

@ -2262,7 +2262,7 @@ namespace libtorrent
std::size_t size = m_connections.size();
#endif
if (p->is_disconnecting())
m_connections.pop_front();
m_connections.erase(m_connections.begin());
else
p->disconnect(m_abort?"stopping torrent":"pausing torrent");
TORRENT_ASSERT(m_connections.size() <= size);