added debug assert when receiving garbage. Especially useful when running the unit tests
This commit is contained in:
@@ -1606,6 +1606,9 @@ namespace libtorrent
|
||||
#endif
|
||||
|
||||
m_statistics.received_bytes(0, received);
|
||||
// What's going on here?!
|
||||
// break in debug builds to allow investigation
|
||||
TORRENT_ASSERT(false);
|
||||
disconnect(errors::invalid_message);
|
||||
return packet_finished();
|
||||
}
|
||||
|
Reference in New Issue
Block a user