1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Merge branch 'elinks-0.12' of git+ssh://pasky.or.cz/srv/git/elinks into elinks-0.12

This commit is contained in:
Laurent MONIN 2008-03-25 22:32:25 +01:00
commit 6f0b7f6d8f

View File

@ -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;