If there was a command with state=CLIENT_COMMAND_STATE_WAIT_SYNC and output
stream was already detected to be closed, we crashed with:
Panic: file imap-client.c: line 841 (client_check_command_hangs): assertion
failed: (!have_wait_unfinished || unfinished_count > 0)
if (!client_handle_input(client))
break;
}
- client_check_command_hangs(client);
+ if (!client->input->closed && !client->output->closed)
+ client_check_command_hangs(client);
}
/* Skip incoming data until newline is found,