summaryrefslogtreecommitdiff
path: root/systray.go
diff options
context:
space:
mode:
Diffstat (limited to 'systray.go')
-rw-r--r--systray.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/systray.go b/systray.go
index e76763a..d72562c 100644
--- a/systray.go
+++ b/systray.go
@@ -116,7 +116,10 @@ func (bt *bmTray) onReady() {
case <-mQuit.ClickedCh:
systray.Quit()
+ // XXX: this a hack as quit doesn't work
+ // this should be done by defer in the main function
bt.bm.Close()
+ releasePID()
log.Println("Quit now...")
os.Exit(0)