mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-29 00:26:33 +03:00
Clean the progress database on csync_commit
It was cleaned twice in csync_destroy because of the conflict resolution https://github.com/owncloud/mirall/issues/667
This commit is contained in:
parent
32818283a5
commit
015eeb1e05
1 changed files with 6 additions and 6 deletions
12
src/csync.c
12
src/csync.c
|
@ -768,6 +768,12 @@ int csync_commit(CSYNC *ctx) {
|
|||
|
||||
csync_vio_commit(ctx);
|
||||
|
||||
while (ctx->progress) {
|
||||
csync_progressinfo_t *next = ctx->progress->next;
|
||||
csync_statedb_free_progressinfo(ctx->progress);
|
||||
ctx->progress = next;
|
||||
}
|
||||
|
||||
/* destroy the rbtrees */
|
||||
if (c_rbtree_size(ctx->local.tree) > 0) {
|
||||
c_rbtree_destroy(ctx->local.tree, _tree_destructor);
|
||||
|
@ -873,12 +879,6 @@ int csync_destroy(CSYNC *ctx) {
|
|||
ctx->progress = next;
|
||||
}
|
||||
|
||||
while (ctx->progress) {
|
||||
csync_progressinfo_t *next = ctx->progress->next;
|
||||
csync_statedb_free_progressinfo(ctx->progress);
|
||||
ctx->progress = next;
|
||||
}
|
||||
|
||||
/* destroy the rbtrees */
|
||||
if (c_rbtree_size(ctx->local.tree) > 0) {
|
||||
c_rbtree_destroy(ctx->local.tree, _tree_destructor);
|
||||
|
|
Loading…
Reference in a new issue