mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-16 18:39:18 +00:00
Bugfix: Windows lacks sleep(), so need to use Sleep() from util.h
This commit is contained in:
parent
bf1f995c4c
commit
527b512cf7
@ -8,6 +8,7 @@
|
||||
|
||||
#include "headers.h"
|
||||
#include "init.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
@ -45,7 +46,7 @@ int ThreadSafeMessageBox(const std::string& message, const std::string& caption,
|
||||
|
||||
if (modal)
|
||||
while (!guiref)
|
||||
sleep(1);
|
||||
Sleep(1000);
|
||||
|
||||
// Message from network thread
|
||||
if(guiref)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user