new: configurable warp noise parameters, fix stopping issues

This commit is contained in:
Hiddify
2024-02-13 16:52:58 +01:00
parent a1314d84a9
commit 313b9a9adb
7 changed files with 40 additions and 20 deletions

View File

@@ -35,7 +35,15 @@ func stopAndAlert(alert string, err error) (resultErr error) {
fmt.Printf("Error: %s: %v\n", alert, err)
propagateStatus(Stopped)
config.DeactivateTunnelService()
commandServer.SetService(nil)
err = box.Close()
if commandServer != nil {
commandServer.SetService(nil)
}
if box != nil {
box.Close()
box = nil
}
if commandServer != nil {
commandServer.Close()
}
return nil
}