Skip to content

Commit

Permalink
fix(autofc2): main loop causing 100% cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
hizkifw committed May 13, 2024
1 parent 1afab74 commit dfe14ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fc2_live_dl/autofc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ async def _main(self):
task_arr.append(tasks[channel])

await asyncio.wait(task_arr, return_when=asyncio.FIRST_COMPLETED)
await asyncio.sleep(1)
except asyncio.CancelledError:
self.logger.error("Interrupted")
finally:
Expand Down

0 comments on commit dfe14ad

Please sign in to comment.