fixed incorrect assert when receiving a 0-size piece message
This commit is contained in:
@@ -1013,7 +1013,7 @@ namespace libtorrent
|
||||
return;
|
||||
}
|
||||
}
|
||||
TORRENT_ASSERT(has_disk_receive_buffer());
|
||||
TORRENT_ASSERT(has_disk_receive_buffer()) || packet_size() == 9;
|
||||
|
||||
// classify the received data as protocol chatter
|
||||
// or data payload for the statistics
|
||||
|
Reference in New Issue
Block a user