Only use controller to modify system state, never the model directly, because it bypasses the repo
This commit is contained in:
parent
295f34c8f9
commit
9022c1ff05
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ def end_singbox(current_state: Optional[SystemState] = None) -> Result:
|
||||||
|
|
||||||
# 5. Bookkeeping
|
# 5. Bookkeeping
|
||||||
# Only dissolve the state if the process is confirmed dead.
|
# Only dissolve the state if the process is confirmed dead.
|
||||||
SystemState.dissolve()
|
SystemStateController.dissolve()
|
||||||
logger.info("Sing-box cleanup sequence complete.")
|
logger.info("Sing-box cleanup sequence complete.")
|
||||||
return Result(valid=True)
|
return Result(valid=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue