aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-07-26 15:41:14 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-26 22:22:53 +0200
commit866867c6160b2701a2ddd74480d2a62d15b2ffe6 (patch)
tree1640ef50df7cbdc43646eebffc4c551a2ee54b75 /widgets
parent54a0a377e03074a27d7d9e84092487c55761b510 (diff)
downloadaerc-866867c6160b2701a2ddd74480d2a62d15b2ffe6.tar.gz
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 <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go2
1 files changed, 1 insertions, 1 deletions
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-- {