]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: When switching ioloops, do it also for the DNS lookup.
authorTimo Sirainen <tss@iki.fi>
Thu, 6 Jun 2013 09:24:27 +0000 (12:24 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 6 Jun 2013 09:24:27 +0000 (12:24 +0300)
src/lib-imap-client/imapc-connection.c

index 22722a6cea9cf5dd61b38800bdacc09e22239971..0276730d406b9aeaaeafdcfeaa5101a4941e3c13 100644 (file)
@@ -187,6 +187,8 @@ void imapc_connection_ioloop_changed(struct imapc_connection *conn)
                conn->to = io_loop_move_timeout(&conn->to);
        if (conn->output != NULL)
                o_stream_switch_ioloop(conn->output);
+       if (conn->dns_lookup != NULL)
+               dns_lookup_switch_ioloop(conn->dns_lookup);
 
        if (conn->client->ioloop == NULL && conn->to_output != NULL) {
                /* we're only once moving the to_output to the main ioloop,