mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix: implicit hydration will not abort synchronization
should avoid constant sync/abort loop for people having many files Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
34082271b6
commit
ff7109e61b
@ -1585,19 +1585,19 @@ void Folder::slotWatcherUnreliable(const QString &message)
|
||||
|
||||
void Folder::slotHydrationStarts()
|
||||
{
|
||||
// Abort any running full sync run and reschedule
|
||||
if (_engine->isSyncRunning()) {
|
||||
setSilenceErrorsUntilNextSync(true);
|
||||
slotTerminateSync();
|
||||
scheduleThisFolderSoon();
|
||||
// TODO: This sets the sync state to AbortRequested on done, we don't want that
|
||||
}
|
||||
// // Abort any running full sync run and reschedule
|
||||
// if (_engine->isSyncRunning()) {
|
||||
// setSilenceErrorsUntilNextSync(true);
|
||||
// slotTerminateSync();
|
||||
// scheduleThisFolderSoon();
|
||||
// // TODO: This sets the sync state to AbortRequested on done, we don't want that
|
||||
// }
|
||||
|
||||
// Let everyone know we're syncing
|
||||
_syncResult.reset();
|
||||
_syncResult.setStatus(SyncResult::SyncRunning);
|
||||
emit syncStarted();
|
||||
emit syncStateChange();
|
||||
// // Let everyone know we're syncing
|
||||
// _syncResult.reset();
|
||||
// _syncResult.setStatus(SyncResult::SyncRunning);
|
||||
// emit syncStarted();
|
||||
// emit syncStateChange();
|
||||
}
|
||||
|
||||
void Folder::slotHydrationDone()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user