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() {
}
func Quit() {
ctx.autostart.Disable()
if ctx.autostart != nil {
ctx.autostart.Disable()
}
if ctx.Status != off {
go setStatus(stopping)
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