mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
move the poll timer stop to the correct place just before starting
to sync.
This commit is contained in:
parent
09fdcf2053
commit
2ae1b5dc84
1 changed files with 4 additions and 2 deletions
|
@ -163,6 +163,10 @@ void Folder::evaluateSync(const QStringList &pathList)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// stop the poll timer here. Its started again in the slot of
|
||||||
|
// sync finished.
|
||||||
|
qDebug() << "* " << alias() << "Poll timer disabled";
|
||||||
|
_pollTimer->stop();
|
||||||
startSync( pathList );
|
startSync( pathList );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,8 +176,6 @@ void Folder::slotPollTimerTimeout()
|
||||||
#ifdef USE_WATCHER
|
#ifdef USE_WATCHER
|
||||||
_watcher->clearPendingEvents();
|
_watcher->clearPendingEvents();
|
||||||
#endif
|
#endif
|
||||||
qDebug() << "* " << alias() << "Poll timer disabled";
|
|
||||||
_pollTimer->stop();
|
|
||||||
evaluateSync(QStringList());
|
evaluateSync(QStringList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue