From 23fa9c5fd8c72c88979f450797d611ab16f1a30f Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 6 Sep 2018 16:20:12 +0200 Subject: [bug] on quit don't wait for notifications that might not come --- systray.go | 2 -- 1 file changed, 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") } -- cgit v1.2.3