[Pkg-owncloud-commits] [owncloud-client] 24/333: use Utility::sleep
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 01c0a3c0990f1f3edaa34e0675cda1b429063e63
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Wed Feb 12 11:16:27 2014 +0100
use Utility::sleep
---
src/mirall/owncloudpropagator.cpp | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index 72de68a..ca58dd7 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -31,7 +31,6 @@
#include <QDateTime>
#include <qstack.h>
#include <QCoreApplication>
-#include <QThread>
#include <neon/ne_basic.h>
#include <neon/ne_socket.h>
@@ -354,11 +353,7 @@ void PropagateUploadFile::start()
if( state == HBF_SOURCE_FILE_CHANGE ) {
if( attempts++ < 5 ) { /* FIXME: How often do we want to try? */
qDebug("SOURCE file has changed during upload, retry #%d in %d seconds!", attempts, 2*attempts);
-#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
- QThread::sleep(2*attempts);
-#else
- sleep(2*attempts);
-#endif
+ Utility::sleep(2*attempts);
if( _previousFileSize == 0 ) {
_previousFileSize = _item._size;
} else {
@@ -406,11 +401,7 @@ void PropagateUploadFile::start()
if( attempts++ < 5 ) { /* FIXME: How often do we want to try? */
qDebug("SOURCE file has changed after upload, retry #%d in %d seconds!", attempts, 2*attempts);
-#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
- QThread::sleep(2*attempts);
-#else
- sleep(2*attempts);
-#endif
+ Utility::sleep(2*attempts);
continue;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list