Skip to content

Commit

Permalink
Always send a progress message at the end of a sync #5290
Browse files Browse the repository at this point in the history
Some listeners detect whether a sync is finished by checking
for isUpdatingEstimates and completedFiles >= totalFiles. But
if a sync didn't transfer any files we never sent signal
with these values. Now we do.
  • Loading branch information
ckamm committed Nov 18, 2016
1 parent 6451eb3 commit e485c5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,11 @@ void SyncEngine::slotFinished(bool success)
}

_journal->commit("All Finished.", false);

// Send final progress information even if no
// files needed propagation
emit transmissionProgress(*_progressInfo);

emit treeWalkResult(_syncedItems);
finalize(success);
}
Expand Down

0 comments on commit e485c5c

Please sign in to comment.