diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-06-23 19:51:00 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-06-26 12:13:45 +0200 |
commit | 0f20d7403f25e8ed7b0d01997be019c561525fba (patch) | |
tree | f54803b885c181dffd72a25dc5987f68e6a68a31 /pkg/backend/api.go | |
parent | 06a7453984adca0b34e62421a1baa8fe54b0d7bb (diff) |
[refactor] cleanup function was unneeded
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r-- | pkg/backend/api.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go index cf9ec5c..58e0a42 100644 --- a/pkg/backend/api.go +++ b/pkg/backend/api.go @@ -30,10 +30,11 @@ func Unblock() { func Quit() { if ctx.Status != off { go setStatus(stopping) + ctx.cfg.SetUserStoppedVPN(false) + } else { ctx.cfg.SetUserStoppedVPN(true) - stopVPN() } - cleanup() + closeVPN() } func DonateAccepted() { |