summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-06-25 18:33:52 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-06-26 12:13:46 +0200
commit4de5748e25678dce9c5a344afc5fd40508c0860f (patch)
treee34a6603aff2d33c1bba9fc4e40f83cc60e7c2e4 /pkg
parent0f20d7403f25e8ed7b0d01997be019c561525fba (diff)
[refactor] remove silly function
Diffstat (limited to 'pkg')
-rw-r--r--pkg/backend/actions.go4
-rw-r--r--pkg/backend/api.go2
2 files changed, 1 insertions, 5 deletions
diff --git a/pkg/backend/actions.go b/pkg/backend/actions.go
index ca45347..725a550 100644
--- a/pkg/backend/actions.go
+++ b/pkg/backend/actions.go
@@ -19,7 +19,3 @@ func stopVPN() {
log.Println(err)
}
}
-
-func closeVPN() {
- ctx.bm.Close()
-}
diff --git a/pkg/backend/api.go b/pkg/backend/api.go
index 58e0a42..a19fd40 100644
--- a/pkg/backend/api.go
+++ b/pkg/backend/api.go
@@ -34,7 +34,7 @@ func Quit() {
} else {
ctx.cfg.SetUserStoppedVPN(true)
}
- closeVPN()
+ ctx.bm.Close()
}
func DonateAccepted() {