From: <dg...@su...> - 2009-01-04 16:37:46
|
Author: dgollub Date: Sun Jan 4 17:37:18 2009 New Revision: 4993 URL: http://www.opensync.org/changeset/4993 Log: Run multiple sync's without re-initalizing the engine when running with --multi. Modified: osynctool/trunk/tools/osynctool.c Modified: osynctool/trunk/tools/osynctool.c ============================================================================== --- osynctool/trunk/tools/osynctool.c Sun Jan 4 17:28:48 2009 (r4992) +++ osynctool/trunk/tools/osynctool.c Sun Jan 4 17:37:18 2009 (r4993) @@ -618,8 +618,10 @@ osync_obj_engine_set_slowsync(objengine, TRUE); } - if (!osync_engine_synchronize_and_block(engine, error)) - goto error_finalize; + do { + if (!osync_engine_synchronize_and_block(engine, error)) + goto error_finalize; + } while (multi); /*if (!wait) { if (!manual) { |