[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 82647664696b42205a6c196b6502d87bd8ee4629
Author: Tomas Touceda <chiiph@xxxxxxxxxxxxxx>
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) {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits