Fixes [Bug]: container hangs when running using docker run command with QBT_RUN flag

Fixes #911
This commit is contained in:
bobokun 2025-08-17 16:30:20 -04:00
parent 1490ac134b
commit d1638ef70c
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 6 additions and 5 deletions

View file

@ -1 +1 @@
4.5.5-develop4
4.5.5-develop5

View file

@ -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: