From 5d19a88446bb42688154c632239e9c44d92e63c3 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Wed, 30 May 2018 11:59:25 +0200 Subject: [PATCH] Use SGTimeStamp::sleepForMSec(55) to replace sleep/Sleep --- src/Network/http/ScreenshotUriHandler.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Network/http/ScreenshotUriHandler.cxx b/src/Network/http/ScreenshotUriHandler.cxx index f2e6c24ed..d0db20e0a 100644 --- a/src/Network/http/ScreenshotUriHandler.cxx +++ b/src/Network/http/ScreenshotUriHandler.cxx @@ -377,11 +377,7 @@ public: virtual ~CanvasImageRequest() { if (currenttask){ SG_LOG(SG_NETWORK, SG_INFO, "canvasimage task running"); -#ifdef _WIN32 - Sleep(15000); -#else - sleep(15); -#endif + SGTimeStamp::sleepForMSec(55); /* avoid , for Sleep... */ } if (canvas && connected){