]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Fix assert-crash when proxying causes print buffer to be flushed
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 20 Jan 2022 12:34:50 +0000 (13:34 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 25 Jan 2022 18:25:50 +0000 (18:25 +0000)
Fixes:
Panic: file ioloop.c: line 865 (io_loop_destroy): assertion failed: (ioloop == current_ioloop)

src/doveadm/doveadm-print-server.c

index 1de5cbcde77632bd78977d33d48b5e2ef138e9a1..ec3c7ed524b50ed03dc15a5c3c6b13282fcf924e 100644 (file)
@@ -102,7 +102,6 @@ static void doveadm_print_server_flush(void)
        timeout_remove(&to);
        o_stream_unset_flush_callback(doveadm_print_ostream);
        o_stream_switch_ioloop_to(doveadm_print_ostream, prev_loop);
-       io_loop_set_current(prev_loop);
        io_loop_destroy(&loop);
 }