]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection_switch_ioloop() should switch also input stream's ioloop.
authorTimo Sirainen <tss@iki.fi>
Wed, 29 Oct 2014 18:46:50 +0000 (11:46 -0700)
committerTimo Sirainen <tss@iki.fi>
Wed, 29 Oct 2014 18:46:50 +0000 (11:46 -0700)
src/lib/connection.c

index 0cc4d55bdf7cdb16c5da4570d98c025c8634ced3..5769b4a5b1b4b05570011c6ff8b53e799a783671 100644 (file)
@@ -360,6 +360,8 @@ void connection_switch_ioloop(struct connection *conn)
                conn->io = io_loop_move_io(&conn->io);
        if (conn->to != NULL)
                conn->to = io_loop_move_timeout(&conn->to);
+       if (conn->input != NULL)
+               i_stream_switch_ioloop(conn->input);
        if (conn->output != NULL)
                o_stream_switch_ioloop(conn->output);
 }