aerc/worker/imap
Koni Marti 022bf1a11f 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>
2022-01-19 17:34:41 +01:00
..
create.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
fetch.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
flags.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
imap.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
list.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
movecopy.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
open.go messages: allow displaying email threads 2021-11-13 15:05:59 +01:00
remove.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
search.go Add flag based search options 2020-07-25 08:08:08 +02:00
worker.go imap: fix panic when sending multiple connect cmds 2022-01-19 17:34:41 +01:00