From d6723e3b654cad60079ad9ac2a1a3e4b58dc04eb Mon Sep 17 00:00:00 2001 From: Jason Beverage Date: Fri, 23 Feb 2024 11:14:32 -0500 Subject: [PATCH] Fixed hang in CesiumIon by making sure not use Cancelable so the task is actually exectued --- src/osgEarthCesium/TaskProcessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgEarthCesium/TaskProcessor.cpp b/src/osgEarthCesium/TaskProcessor.cpp index 30f92120ce..7b9d5826de 100644 --- a/src/osgEarthCesium/TaskProcessor.cpp +++ b/src/osgEarthCesium/TaskProcessor.cpp @@ -21,6 +21,7 @@ */ #include "TaskProcessor" #include +#include using namespace osgEarth; using namespace osgEarth::Threading; @@ -51,7 +52,7 @@ void TaskProcessor::shutdown() void TaskProcessor::startTask(std::function f) { - auto task = [this, f](Cancelable&) { + auto task = [this, f]() { f(); return true; };