Skip to content

Commit

Permalink
temporary disable restartsession, until fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 5, 2025
1 parent 0a0e846 commit 3c3ba30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bot/core/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def add_handlers():
BotCommands.YtdlLeechCommand,
CustomFilters.authorized,
),
"restart_sessions": (
restart_sessions,
BotCommands.RestartSessionsCommand,
CustomFilters.sudo,
),
# "restart_sessions": (
# restart_sessions,
# BotCommands.RestartSessionsCommand,
# CustomFilters.sudo,
# ),
"mediainfo": (
mediainfo,
BotCommands.MediaInfoCommand,
Expand Down
2 changes: 1 addition & 1 deletion bot/modules/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def confirm_restart(_, query):
intervals["stopAll"] = True
restart_message = await send_message(reply_to, "Restarting...")
await delete_message(message)
await TgClient.stop()
# await TgClient.stop()
if scheduler.running:
scheduler.shutdown(wait=False)
if qb := intervals["qb"]:
Expand Down

0 comments on commit 3c3ba30

Please sign in to comment.