mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
move the poll timer stop to the correct place just before starting
to sync.
This commit is contained in:
parent
09fdcf2053
commit
2ae1b5dc84
@ -163,6 +163,10 @@ void Folder::evaluateSync(const QStringList &pathList)
|
||||
return;
|
||||
}
|
||||
|
||||
// stop the poll timer here. Its started again in the slot of
|
||||
// sync finished.
|
||||
qDebug() << "* " << alias() << "Poll timer disabled";
|
||||
_pollTimer->stop();
|
||||
startSync( pathList );
|
||||
}
|
||||
|
||||
@ -172,8 +176,6 @@ void Folder::slotPollTimerTimeout()
|
||||
#ifdef USE_WATCHER
|
||||
_watcher->clearPendingEvents();
|
||||
#endif
|
||||
qDebug() << "* " << alias() << "Poll timer disabled";
|
||||
_pollTimer->stop();
|
||||
evaluateSync(QStringList());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user