From d1638ef70c0c68ec03e45a97f05669ba66d295b1 Mon Sep 17 00:00:00 2001 From: bobokun Date: Sun, 17 Aug 2025 16:30:20 -0400 Subject: [PATCH] Fixes [Bug]: container hangs when running using docker run command with QBT_RUN flag Fixes #911 --- VERSION | 2 +- qbit_manage.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index e43881e..8dc691b 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.5.5-develop4 +4.5.5-develop5 diff --git a/qbit_manage.py b/qbit_manage.py index 2dd145d..bdc25f5 100755 --- a/qbit_manage.py +++ b/qbit_manage.py @@ -864,10 +864,11 @@ if __name__ == "__main__": # Stop the scheduler gracefully scheduler.stop() - if web_process: - web_process.terminate() - web_process.join() - end() + # Cleanup and exit (common for both run and scheduled modes) + if web_process: + web_process.terminate() + web_process.join() + end() except KeyboardInterrupt: scheduler.stop() if web_process: