diff options
| -rw-r--r-- | src/trackerlogic.c | 1 | ||||
| -rw-r--r-- | tests/integration/test_statefile.py | 1 |
2 files changed, 1 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 | } |
diff --git a/tests/integration/test_statefile.py b/tests/integration/test_statefile.py index 2a2d147..9f6db01 100644 --- a/tests/integration/test_statefile.py +++ b/tests/integration/test_statefile.py | |||
| @@ -30,6 +30,7 @@ class StateFileRoundTrip(TrackerTestCase): | |||
| 30 | files = restarted.scrape(info_hash)[b"files"] | 30 | files = restarted.scrape(info_hash)[b"files"] |
| 31 | self.assertIn(info_hash, files, "the torrent did not survive the restart") | 31 | self.assertIn(info_hash, files, "the torrent did not survive the restart") |
| 32 | entry = files[info_hash] | 32 | entry = files[info_hash] |
| 33 | self.assertEqual(entry[b"downloaded"], 1, "the completed count did not survive") | ||
| 33 | self.assertEqual(entry[b"complete"], 0, "no peers are carried over, only the torrent") | 34 | self.assertEqual(entry[b"complete"], 0, "no peers are carried over, only the torrent") |
| 34 | self.assertEqual(entry[b"incomplete"], 0) | 35 | self.assertEqual(entry[b"incomplete"], 0) |
| 35 | complaints = restarted.stop() | 36 | complaints = restarted.stop() |
