dovecot-2.0: dsync: Added a comment.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Mon Jul 12 17:11:27 EEST 2010
    
    
  
details:   http://hg.dovecot.org/dovecot-2.0/rev/30317b89b101
changeset: 11799:30317b89b101
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jul 12 15:11:18 2010 +0100
description:
dsync: Added a comment.
diffstat:
 src/dsync/dsync-worker-local.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r a2bbd6c3624a -r 30317b89b101 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c	Mon Jul 12 13:24:16 2010 +0100
+++ b/src/dsync/dsync-worker-local.c	Mon Jul 12 15:11:18 2010 +0100
@@ -1561,6 +1561,9 @@
 	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);
 }
 
    
    
More information about the dovecot-cvs
mailing list