022bf1a11f
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> |
||
---|---|---|
.. | ||
create.go | ||
fetch.go | ||
flags.go | ||
imap.go | ||
list.go | ||
movecopy.go | ||
open.go | ||
remove.go | ||
search.go | ||
worker.go |