diff --git a/systray.go b/systray.go index 7d2428307dc22af1f1c1ac251be34e29ddda5b90..fbc89be8442d48b9df44970d2f19cb2c24fc39de 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") }