Skip to content

Commit

Permalink
Fixed hang in CesiumIon by making sure not use Cancelable so the task…
Browse files Browse the repository at this point in the history
… is actually exectued
  • Loading branch information
jasonbeverage committed Feb 23, 2024
1 parent ad0aa26 commit d6723e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osgEarthCesium/TaskProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
#include "TaskProcessor"
#include <osgEarth/Threading>
#include <osgEarth/Notify>

using namespace osgEarth;
using namespace osgEarth::Threading;
Expand Down Expand Up @@ -51,7 +52,7 @@ void TaskProcessor::shutdown()

void TaskProcessor::startTask(std::function<void()> f)
{
auto task = [this, f](Cancelable&) {
auto task = [this, f]() {
f();
return true;
};
Expand Down

0 comments on commit d6723e3

Please sign in to comment.