Fixed SPN re-initialization

https://github.com/safing/portmaster/issues/1872
This commit is contained in:
Alexandr Stelnykovych
2025-06-26 17:14:57 +03:00
parent 0c2dfbc489
commit 5d37c126bc
4 changed files with 48 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func handleReInit(ar *api.Request) (msg string, err error) {
}
// Make sure SPN is stopped and wait for it to complete.
err = module.mgr.Do("stop SPN for re-init", module.instance.SPNGroup().EnsureStoppedWorker)
err = module.mgr.DoAsStopWorker("stop SPN for re-init", module.instance.SPNGroup().EnsureStoppedWorker)
if err != nil {
return "", fmt.Errorf("failed to stop SPN for re-init: %w", err)
}