added debug assert when receiving garbage. Especially useful when running the unit tests
This commit is contained in:
parent
d959331c1e
commit
b1c12d4c69
|
@ -1606,6 +1606,9 @@ namespace libtorrent
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_statistics.received_bytes(0, received);
|
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);
|
disconnect(errors::invalid_message);
|
||||||
return packet_finished();
|
return packet_finished();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue