From 7d897e9826c0075424e2b1cbb398a3b39901bad9 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Wed, 22 Jan 2025 10:14:38 +0600 Subject: [PATCH] update restart.py --- bot/modules/restart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/modules/restart.py b/bot/modules/restart.py index 77ba8198b..a32aa6fae 100644 --- a/bot/modules/restart.py +++ b/bot/modules/restart.py @@ -136,7 +136,8 @@ async def confirm_restart(_, query): "--break-system-packages", "--upgrade", ) - await gather(proc1.wait(), proc2.wait(), proc3.wait()) + await gather(proc1.wait(), proc2.wait()) + await proc3.wait() async with aiopen(".restartmsg", "w") as f: await f.write(f"{restart_message.chat.id}\n{restart_message.id}\n") osexecl(executable, executable, "-m", "bot")