Explorar el Código

Do not clear the pending event in the polling anymore

This is useless,  and can even cause problems now since polling only do
a sync when the server has actually changed
Olivier Goffart hace 12 años
padre
commit
82fb8c49cf
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/mirall/folder.cpp

+ 1 - 2
src/mirall/folder.cpp

@@ -236,8 +236,7 @@ void Folder::evaluateSync(const QStringList &/*pathList*/)
 
 void Folder::slotPollTimerTimeout()
 {
-    qDebug() << "* Polling" << alias() << "for changes. Ignoring all pending events until now (time since next sync:" << (_timeSinceLastSync.elapsed() / 1000) << "s)";
-    _watcher->clearPendingEvents();
+    qDebug() << "* Polling" << alias() << "for changes. (time since next sync:" << (_timeSinceLastSync.elapsed() / 1000) << "s)";
 
     if (quint64(_timeSinceLastSync.elapsed()) > MirallConfigFile().forceSyncInterval()) {
         qDebug() << "* Force Sync now";