[vidalia/master] Make the sleep work on Windows

13 Aug
2011
13 Aug
'11
3:11 a.m.
commit 82647664696b42205a6c196b6502d87bd8ee4629 Author: Tomas Touceda <chiiph@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) {
5061
Age (days ago)
5061
Last active (days ago)
0 comments
1 participants
participants (1)
-
chiiph@torproject.org