diff options
Diffstat (limited to 'systray.go')
-rw-r--r-- | systray.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -48,6 +48,12 @@ func run(bm *bitmask.Bitmask, conf *systrayConfig) { } func (bt bmTray) onExit() { + status, _ := bt.bm.GetStatus() + if status != "off" { + ch := bt.bm.GetStatusCh() + bt.bm.StopVPN() + status = <-ch + } log.Println("Closing systray") } |