1
0
Fork 0

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.
This commit is contained in:
Richard Harrison 2018-06-01 00:45:40 +02:00
parent f17685ca79
commit ff302a307d

View file

@ -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 <windows.h>, for Sleep... */
SG_LOG(SG_NETWORK, SG_ALERT, "CanvasImage: task running, pausing for 15 seconds");
SGTimeStamp::sleepFor(SGTimeStamp::fromSec(15));
}
if (canvas && connected){