From e85cb90652abcfde2d83cf4563f301324fdf86d1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 19 Sep 2008 02:37:05 +0000 Subject: [PATCH] fixed assert in peer_connection --- src/peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 8d1e5ff00..6e07ecad3 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -366,7 +366,7 @@ namespace libtorrent // may throw an asio error if socket has disconnected catch (std::exception&) {} - TORRENT_ASSERT(is_interesting() == interested); + TORRENT_ASSERT(in_handshake() || is_interesting() == interested); } #ifndef TORRENT_DISABLE_EXTENSIONS