Skip to content
Snippets Groups Projects
Unverified Commit d641b7a6 authored by meskio's avatar meskio :tent:
Browse files

[bug] don't crash on quit if no autostart

parent 9980d38b
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,9 @@ func SwitchOff() { ...@@ -48,7 +48,9 @@ func SwitchOff() {
} }
func Quit() { func Quit() {
ctx.autostart.Disable() if ctx.autostart != nil {
ctx.autostart.Disable()
}
if ctx.Status != off { if ctx.Status != off {
go setStatus(stopping) go setStatus(stopping)
ctx.cfg.SetUserStoppedVPN(false) ctx.cfg.SetUserStoppedVPN(false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment