diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 6e07ecad3..46cea6184 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -341,6 +341,7 @@ namespace libtorrent // have not been initialized yet. The interested // flag will be updated once they are. if (m_have_piece.size() == 0) return; + if (!t->ready_for_connections()) return; bool interested = false; if (!t->is_finished())