mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add sleep in web request
This commit is contained in:
@@ -57,7 +57,7 @@ ThumbnailThreadWorker::ThumbnailThreadWorker(ThumbnailThread* parent)
|
||||
wxThread::ExitCode ThumbnailThreadWorker::Entry() {
|
||||
while (true) {
|
||||
do {
|
||||
Sleep(1);
|
||||
wxMilliSleep(1);
|
||||
} while (stop);
|
||||
// get a request
|
||||
{
|
||||
|
||||
@@ -59,6 +59,7 @@ WebRequestWindow::WebRequestWindow(Window* parent, const String& url, bool sizer
|
||||
});
|
||||
|
||||
// start request
|
||||
wxMilliSleep(70); // make sure we don't DDoS anyone
|
||||
request.Start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user