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() {
|
wxThread::ExitCode ThumbnailThreadWorker::Entry() {
|
||||||
while (true) {
|
while (true) {
|
||||||
do {
|
do {
|
||||||
Sleep(1);
|
wxMilliSleep(1);
|
||||||
} while (stop);
|
} while (stop);
|
||||||
// get a request
|
// get a request
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ WebRequestWindow::WebRequestWindow(Window* parent, const String& url, bool sizer
|
|||||||
});
|
});
|
||||||
|
|
||||||
// start request
|
// start request
|
||||||
|
wxMilliSleep(70); // make sure we don't DDoS anyone
|
||||||
request.Start();
|
request.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user