[Pkg-owncloud-commits] [owncloud-client] 13/333: Propagator: Use cross platform sleep function

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:27 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 79d14f0760084bd58042350973ea613a24999c9c
Author: Markus Goetz <markus at woboq.com>
Date:   Mon Feb 10 14:34:48 2014 +0100

    Propagator: Use cross platform sleep function
---
 src/mirall/owncloudpropagator.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index d935c8a..699ebe6 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -31,6 +31,7 @@
 #include <QDateTime>
 #include <qstack.h>
 #include <QCoreApplication>
+#include <QThread>
 
 #include <neon/ne_basic.h>
 #include <neon/ne_socket.h>
@@ -353,7 +354,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);
-                    sleep(2*attempts);
+                    QThread::sleep(2*attempts);
                     if( _previousFileSize == 0 ) {
                         _previousFileSize = _item._size;
                     } else {
@@ -401,7 +402,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);
-                sleep(2*attempts);
+                QThread::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