summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2024-01-27 15:25:46 +0000
committerhhvn <dev@hhvn.uk>2024-01-27 15:25:46 +0000
commit764d1c63768b1bef017bb6c8c31b3dc8540a37fb (patch)
treeae916dc40eb44e314e97dc0f4063cdddf6c32209 /bar
parent0064d3f30cb971cde1ec8214224497a158bc2649 (diff)
Close the redraw channel so the bars' goroutines will finish
Diffstat (limited to 'bar')
-rw-r--r--bar/bar.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bar/bar.go b/bar/bar.go
index c77e2e9..55914e0 100644
--- a/bar/bar.go
+++ b/bar/bar.go
@@ -167,6 +167,7 @@ func (b bar) draw(d drawinfo) {
}
func (b *bar) destroy(state *bspc.State) {
+ close(b.redraw)
mon, _ := b.getmon(state)
if (mon != nil) {
mon.TopPadding(0)