From 866867c6160b2701a2ddd74480d2a62d15b2ffe6 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Tue, 26 Jul 2022 15:41:14 +0200 Subject: threads: fix race warnings for client-side debouncing Client-side thread debouncing happens in a different goroutine. Any function or variable that is called or accessed by this goroutine should be protected from a concurrent access. Signed-off-by: Koni Marti Acked-by: Robin Jarry --- widgets/msglist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/msglist.go b/widgets/msglist.go index 95dfa1f3..23eb4102 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -88,7 +88,7 @@ func (ml *MessageList) Draw(ctx *ui.Context) { ) if store.ThreadedView() { - threads := store.Threads + threads := store.Threads() counter := len(store.Uids()) for i := len(threads) - 1; i >= 0; i-- { -- cgit