add sleep in web request

This commit is contained in:
GenevensiS
2025-12-25 11:08:06 +01:00
parent f03dfafc3e
commit b5cac4c6ef
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ ThumbnailThreadWorker::ThumbnailThreadWorker(ThumbnailThread* parent)
wxThread::ExitCode ThumbnailThreadWorker::Entry() {
while (true) {
do {
Sleep(1);
wxMilliSleep(1);
} while (stop);
// get a request
{
+1
View File
@@ -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();
}