From: Timo Sirainen Date: Mon, 12 Jul 2010 14:11:18 +0000 (+0100) Subject: dsync: Added a comment. X-Git-Tag: 2.0.rc3~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6e4350ff4085ef39fdb9143bf22afb9635542be;p=thirdparty%2Fdovecot%2Fcore.git dsync: Added a comment. --- diff --git a/src/dsync/dsync-worker-local.c b/src/dsync/dsync-worker-local.c index 7778cbcea4..e9a916c962 100644 --- a/src/dsync/dsync-worker-local.c +++ b/src/dsync/dsync-worker-local.c @@ -1561,6 +1561,9 @@ local_worker_save_msg_continue(struct local_dsync_worker *worker) i_stream_unref(&worker->save_input); dsync_worker_try_finish(worker); + /* call the callback last, since it could call worker code again and + cause problems (e.g. if _try_finish() is called again, it could + cause a duplicate finish_callback()) */ callback(worker->save_context); }