fix(hopper): avoid blocking owned Linux shutdown

This commit is contained in:
morluto
2026-07-13 21:53:08 +00:00
parent e29652a2dd
commit d28336c6e5
4 changed files with 39 additions and 14 deletions
+8 -1
View File
@@ -634,10 +634,17 @@ def _dispatch(method, params):
return {"shutdown": True, "analysis_stopped": True, "document_closed": True}
if document.backgroundProcessActive():
document.requestBackgroundProcessStop()
if REA_OWNS_PROCESS_LIFETIME:
return {
"shutdown": True,
"analysis_stopped": not document.backgroundProcessActive(),
"document_closed": False,
"cleanup_required": True,
}
if document.backgroundProcessActive():
document.waitForBackgroundProcessToEnd()
analysis_stopped = not document.backgroundProcessActive()
document.closeDocument()
analysis_stopped = not document.backgroundProcessActive()
document_closed = _session_document() is None
return {
"shutdown": True,