diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 64e4d749c..2148ada2c 100755 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -1342,6 +1342,9 @@ namespace libtorrent else if (t->num_pieces() == 0) { // don't send a bitfield if we don't have any pieces +#ifndef NDEBUG + m_sent_bitfield = true; +#endif return; }