add asserts for peers to be destructed in the network thread

This commit is contained in:
Arvid Norberg
2012-03-30 04:29:54 +00:00
parent 418c1e8190
commit 697fa4911b
2 changed files with 3 additions and 1 deletions

View File

@@ -197,6 +197,7 @@ namespace libtorrent
bt_peer_connection::~bt_peer_connection()
{
TORRENT_ASSERT(m_ses.is_network_thread());
}
void bt_peer_connection::on_connected()