diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-01-19 13:18:08 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-01-19 17:34:41 +0100 |
commit | 022bf1a11fa65c81dd5c7ded2a205a94bb449a7a (patch) | |
tree | 64712ee178cd773ba654c92afb1d6f6254697fff /README.md | |
parent | f81d8871c7007c7fa17f3779f711631d747f22df (diff) | |
download | aerc-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 'README.md')
0 files changed, 0 insertions, 0 deletions