From 4a92dae541e160e96e91170edb28d6b6a85497a6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 17 Jan 2008 21:25:19 +0000 Subject: [PATCH] fixed typo --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 5f0cf61d6..61aaa4785 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -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);