move the poll timer stop to the correct place just before starting

to sync.
This commit is contained in:
Klaas Freitag 2012-03-12 17:37:18 +01:00
parent 09fdcf2053
commit 2ae1b5dc84

View file

@ -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());
} }