summaryrefslogtreecommitdiff
path: root/systray.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-09-06 16:20:12 +0200
committerRuben Pollan <meskio@sindominio.net>2018-09-06 16:20:12 +0200
commit23fa9c5fd8c72c88979f450797d611ab16f1a30f (patch)
tree97a34591fab368f0657dc2a47c57357663cbfd4d /systray.go
parent9961cccc89c48f9ce653c75fabbfc829900b82fe (diff)
[bug] on quit don't wait for notifications that might not come0.18.9
Diffstat (limited to 'systray.go')
-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")
}