summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systray.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/systray.go b/systray.go
index 7d24283..fbc89be 100644
--- a/systray.go
+++ b/systray.go
@@ -55,9 +55,7 @@ func run(bm bitmask.Bitmask, conf *systrayConfig, notify *notificator, as autost
func (bt bmTray) onExit() {
status, _ := bt.bm.GetStatus()
if status != "off" {
- ch := bt.bm.GetStatusCh()
bt.bm.StopVPN()
- status = <-ch
}
log.Println("Closing systray")
}