diff --git a/src/policy.cpp b/src/policy.cpp index 5aa74310e..6f9d1849d 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -674,6 +674,7 @@ namespace libtorrent peer* p = find_connect_candidate(); if (p==0) return false; assert(!p->banned); + assert(!p->connection); p->connection = &m_torrent->connect_to_peer(p->ip, p->id); p->connected = boost::posix_time::second_clock::local_time();