aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-01-19 13:18:08 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-19 17:34:41 +0100
commit022bf1a11fa65c81dd5c7ded2a205a94bb449a7a (patch)
tree64712ee178cd773ba654c92afb1d6f6254697fff /worker/notmuch
parentf81d8871c7007c7fa17f3779f711631d747f22df (diff)
downloadaerc-022bf1a11fa65c81dd5c7ded2a205a94bb449a7a.tar.gz
imap: fix panic when sending multiple connect cmds
fixes the panic when the user sends multiple connect commands and is already connected. The panic is caused by closing an already closed channel. This happens when the idle re-init code is not executed, e.g. when there's a return statement in the switch block. A defer func() before the switch block will prevent this. The existing behavior of only creating a new idleStop channel when properly connected is preseverd. Signed-off-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'worker/notmuch')
0 files changed, 0 insertions, 0 deletions