added debug assert when receiving garbage. Especially useful when running the unit tests

This commit is contained in:
Arvid Norberg 2010-01-17 21:49:26 +00:00
parent d959331c1e
commit b1c12d4c69
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}