]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
SocketAPI: Push new status of dirty files regardless when not synced (#4970)
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 16 Jun 2016 13:27:10 +0000 (15:27 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Jun 2016 13:27:10 +0000 (15:27 +0200)
commit3342ebfcc59e996232ccda1eebb3c965f03727b1
tree6ae05675a586b350541394b931184210a4650b72
parentb4900d60b76826d17de803ee0c727ac73f4492ba
SocketAPI: Push new status of dirty files regardless when not synced (#4970)

The FolderWatcher inserts files to be marked as SYNC and we
currently assume that all file statuses will be updated by the
following sync. It's however possible that the FolderWatcher
notify us of a change that csync won't consider necessary to
propagate, in which case a new status wouldn't be pushed and
the file manager would continue showing this file as syncing.

Re-push the file status when emptying the dirty files list
before propagating to avoid this issue, most likely the OK
status.
src/libsync/syncfilestatustracker.cpp
src/libsync/syncfilestatustracker.h