From: Timo Sirainen Date: Mon, 7 Mar 2011 17:35:09 +0000 (+0200) Subject: dsync: Avoid hanging when saving messages. X-Git-Tag: 2.0.12~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=276c4d0d9aa852ec94209dd0bfa1c3319222e25d;p=thirdparty%2Fdovecot%2Fcore.git dsync: Avoid hanging when saving messages. --- diff --git a/src/dsync/dsync-proxy-client.c b/src/dsync/dsync-proxy-client.c index cc54a1c0fa..da31c1642d 100644 --- a/src/dsync/dsync-proxy-client.c +++ b/src/dsync/dsync-proxy-client.c @@ -364,8 +364,10 @@ proxy_client_worker_output_real(struct proxy_client_dsync_worker *worker) /* proxy_client_worker_msg_save() hasn't finished yet. */ o_stream_cork(worker->output); proxy_client_send_stream(worker); - if (worker->save_input != NULL) - return 1; + if (worker->save_input != NULL) { + /* still unfinished, make sure we get called again */ + return 0; + } } if (worker->worker.output_callback != NULL)