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:
parent
f17685ca79
commit
ff302a307d
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ public:
|
||||||
// causing a crash when the deconstructor finishes. Rare, but might happen. Just wait to be sure.
|
// causing a crash when the deconstructor finishes. Rare, but might happen. Just wait to be sure.
|
||||||
virtual ~CanvasImageRequest() {
|
virtual ~CanvasImageRequest() {
|
||||||
if (currenttask){
|
if (currenttask){
|
||||||
SG_LOG(SG_NETWORK, SG_INFO, "canvasimage task running");
|
SG_LOG(SG_NETWORK, SG_ALERT, "CanvasImage: task running, pausing for 15 seconds");
|
||||||
SGTimeStamp::sleepForMSec(55); /* avoid <windows.h>, for Sleep... */
|
SGTimeStamp::sleepFor(SGTimeStamp::fromSec(15));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canvas && connected){
|
if (canvas && connected){
|
||||||
|
|
Loading…
Reference in a new issue