[tor-commits] [vidalia/master] Make the sleep work on Windows

chiiph at torproject.org chiiph at torproject.org
Sat Aug 13 03:11:29 UTC 2011


commit 82647664696b42205a6c196b6502d87bd8ee4629
Author: Tomas Touceda <chiiph at torproject.org>
Date:   Fri Aug 12 23:21:25 2011 -0300

    Make the sleep work on Windows
---
 src/vidalia/MainWindow.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index 9ef9656..b159d2e 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -1146,7 +1146,11 @@ MainWindow::started()
     while((!file.open(QIODevice::ReadOnly | QIODevice::Text)) and
 	  (tries++ < maxtries)) {
       vWarn(QString("This is try number: %1.").arg(tries));
+#if defined(Q_WS_WIN)
+      Sleep(1000);
+#else
       sleep(1);
+#endif
     }
 
     if(tries >= maxtries) {



More information about the tor-commits mailing list