mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
bittorrent: Overflow occuring when a piece was rejected.
This commit is contained in:
parent
4b408dd860
commit
08894be379
@ -931,7 +931,7 @@ add_to_bittorrent_piece_cache(struct bittorrent_peer_connection *peer,
|
||||
cache->rejected_pieces++;
|
||||
mem_mmap_free(entry->data, piece_length);
|
||||
entry->data = NULL;
|
||||
update_bittorrent_connection_stats(bittorrent, (off_t) -piece_length, 0, 0);
|
||||
update_bittorrent_connection_stats(bittorrent, -(off_t)piece_length, 0, 0);
|
||||
set_bittorrent_piece_cache_remaining(cache, piece, 1);
|
||||
if (bittorrent->mode == BITTORRENT_MODE_END_GAME)
|
||||
bittorrent->mode = BITTORRENT_MODE_NORMAL;
|
||||
|
Loading…
Reference in New Issue
Block a user