Skip to content

Commit c5d93f3

Browse files
author
virco
committed
fix
1 parent 9541466 commit c5d93f3

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

plocalscan.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -638,15 +638,16 @@ static void scan_delete_folder(sync_folderlist *fl){
638638
psync_sql_bind_uint(res, 1, fl->syncid);
639639
psync_sql_bind_uint(res, 2, fl->localid);
640640
psync_sql_run_free(res);
641-
return;
642641
}
643-
psync_sql_commit_transaction();
644-
if (tries==10)
645-
psync_timer_notify_exception();
646-
tries++;
647-
psync_milisleep(20+tries*20);
648-
psync_sql_start_transaction();
649-
goto retry;
642+
else{
643+
psync_sql_commit_transaction();
644+
if (tries==10)
645+
psync_timer_notify_exception();
646+
tries++;
647+
psync_milisleep(20+tries*20);
648+
psync_sql_start_transaction();
649+
goto retry;
650+
}
650651
}
651652
delete_local_folder_rec(fl->localid);
652653
if (folderid)

0 commit comments

Comments
 (0)