summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.go b/main.go
index 58e55b9..8a72dbf 100644
--- a/main.go
+++ b/main.go
@@ -12,10 +12,6 @@ import (
"hhvn.uk/hbspbar/status"
)
-// Store the state for when bar.Cleanup() is called
-// This is a bit hacky but I don't really see any alternative
-var finalstate *bspc.State = nil
-
func main() {
signals := make(chan os.Signal, 1)
signal.Notify(signals,
@@ -91,5 +87,5 @@ func main() {
}
}
- Cleanup(finalstate)
+ Cleanup(state)
}