Only use controller to modify system state, never the model directly, because it bypasses the repo

This commit is contained in:
SimplifiedPrivacy 2026-10-27 17:08:14 -04:00
parent 295f34c8f9
commit 9022c1ff05

View file

@ -207,7 +207,7 @@ def end_singbox(current_state: Optional[SystemState] = None) -> Result:
# 5. Bookkeeping
# Only dissolve the state if the process is confirmed dead.
SystemState.dissolve()
SystemStateController.dissolve()
logger.info("Sing-box cleanup sequence complete.")
return Result(valid=True)