From 764d1c63768b1bef017bb6c8c31b3dc8540a37fb Mon Sep 17 00:00:00 2001 From: hhvn Date: Sat, 27 Jan 2024 15:25:46 +0000 Subject: Close the redraw channel so the bars' goroutines will finish --- bar/bar.go | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3