mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
refactor: bound shared thread pool shutdown
This commit is contained in:
+2
-2
@@ -478,8 +478,8 @@ def pytest_sessionfinish(session, exitstatus):
|
||||
from app.runtime.thread import ThreadHelper
|
||||
|
||||
helper = ThreadHelper.get_existing_instance()
|
||||
if helper:
|
||||
helper.shutdown()
|
||||
if helper and helper.shutdown() is False:
|
||||
raise RuntimeError("shared thread pool did not converge")
|
||||
except Exception as err:
|
||||
_report_session_cleanup_error(session, "thread helper", err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user