aerc/worker/types
Tim Culverhouse ea58e76332 worker: do not lock while callbacks are running
Commit 716ade8968 ("worker: lock access to callback maps") introduced
locks to the worker callback maps. The locks also locked the processing
of the callback, which had the unintended side effect of deadlocking the
worker if any callbacks attempted to post a new action or message.

Refactor the locks to only lock the worker while accessing the maps.

Fixes: 716ade8968 ("worker: lock access to callback maps")
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-09-29 20:09:17 +02:00
..
messages.go imap: stop checkmail if there are pending actions 2022-09-29 17:14:07 +02:00
sort.go Add sorting functionality 2019-09-20 14:56:02 -04:00
thread.go mark: (un)mark message threads 2022-08-22 09:30:37 +02:00
thread_test.go lint: apply new formatting rules 2022-08-01 10:44:52 +02:00
worker.go worker: do not lock while callbacks are running 2022-09-29 20:09:17 +02:00