All the callers cork the stream, so this can only mean that the corking
failed because the connection was already closed. Continue handling the
input anyway.
Fixes:
Panic: file imap-client.c: line 1236 (client_handle_input): assertion failed: (o_stream_is_corked(client->output))
{
bool ret, remove_io, handled_commands = FALSE;
- i_assert(o_stream_is_corked(client->output));
+ i_assert(o_stream_is_corked(client->output) ||
+ client->output->stream_errno != 0);
i_assert(!client->disconnected);
client->handling_input = TRUE;