Skip to content

Commit

Permalink
fix: download error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoha committed Jun 24, 2023
1 parent 29be7a5 commit 8fb38f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def main():

set_max_concurrent_transmissions(client, app.max_concurrent_transmissions)

asyncio.run(client.start())
client.start()
logger.success(_t("Successfully started (Press Ctrl+C to stop)"))

app.loop.create_task(download_all_chat(client))
Expand All @@ -609,7 +609,7 @@ def main():
except Exception as e:
logger.exception("{}", e)
finally:
asyncio.run(client.stop())
client.stop()
app.is_running = False
for task in tasks:
task.cancel()
Expand Down

0 comments on commit 8fb38f0

Please sign in to comment.