Skip to content

Commit

Permalink
fix trackerhandle should be sequential
Browse files Browse the repository at this point in the history
packs screens can get all messed up otherwise

This function was being limited elsewhere (since it was 'working'), and recent updates have unlocked actual async it seems.
  • Loading branch information
Audionut committed Feb 20, 2025
1 parent a7532d9 commit eb640f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/trackerhandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ async def process_single_tracker(tracker):
await asyncio.sleep(5)
await client.add_to_client(meta, "PTP")

# Process all trackers concurrently
tasks = [process_single_tracker(tracker) for tracker in enabled_trackers]
await asyncio.gather(*tasks)
# Process each tracker sequentially
for tracker in enabled_trackers:
await process_single_tracker(tracker)

0 comments on commit eb640f4

Please sign in to comment.