diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 14:03:47 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 14:03:47 +0100 |
| commit | 062696d31cc21e37b44e8c23e40ece9076cc22e5 (patch) | |
| tree | d3b6f684236f4de135285528ddf4f06c568c0a88 /src | |
| parent | d620e4c3ea42b0df6eb5e8dab92d7a8f031fa617 (diff) | |
Fix: Restoring a state file doubled every completed count
Diffstat (limited to 'src')
| -rw-r--r-- | src/trackerlogic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/trackerlogic.c b/src/trackerlogic.c index 60d5b18..e29ca11 100644 --- a/src/trackerlogic.c +++ b/src/trackerlogic.c | |||
| @@ -76,7 +76,6 @@ void add_torrent_from_saved_state(ot_hash const hash, ot_time age, size_t down_c | |||
| 76 | torrent->peer_list6->base = time_now_minutes() - age; | 76 | torrent->peer_list6->base = time_now_minutes() - age; |
| 77 | torrent->peer_list4->base = time_now_minutes() - age; | 77 | torrent->peer_list4->base = time_now_minutes() - age; |
| 78 | torrent->peer_list6->down_count = down_count; | 78 | torrent->peer_list6->down_count = down_count; |
| 79 | torrent->peer_list4->down_count = down_count; | ||
| 80 | 79 | ||
| 81 | mutex_bucket_unlock_by_hash(hash, 1); | 80 | mutex_bucket_unlock_by_hash(hash, 1); |
| 82 | } | 81 | } |
