From ff302a307d49b1fa51936cf1a492ca1fd1bd0eee Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Fri, 1 Jun 2018 00:45:40 +0200 Subject: [PATCH] Canvas Screen image provider: Change delay to 15 seconds; and alert that there is a delay. The 15 second delay should be sufficient to allow the compressor to finish processing; and in anycase this is running in a thread and therefore shouldn't freeze the whole sim for the delay period. --- src/Network/http/ScreenshotUriHandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Network/http/ScreenshotUriHandler.cxx b/src/Network/http/ScreenshotUriHandler.cxx index d0db20e0a..a721f871d 100644 --- a/src/Network/http/ScreenshotUriHandler.cxx +++ b/src/Network/http/ScreenshotUriHandler.cxx @@ -376,8 +376,8 @@ public: // causing a crash when the deconstructor finishes. Rare, but might happen. Just wait to be sure. virtual ~CanvasImageRequest() { if (currenttask){ - SG_LOG(SG_NETWORK, SG_INFO, "canvasimage task running"); - SGTimeStamp::sleepForMSec(55); /* avoid , for Sleep... */ + SG_LOG(SG_NETWORK, SG_ALERT, "CanvasImage: task running, pausing for 15 seconds"); + SGTimeStamp::sleepFor(SGTimeStamp::fromSec(15)); } if (canvas && connected){