From d6e4350ff4085ef39fdb9143bf22afb9635542be Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Jul 2010 15:11:18 +0100 Subject: [PATCH] dsync: Added a comment. --- src/dsync/dsync-worker-local.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.47.3