MindThread:shutdownInd: explicitly invoke on globalMind

This commit is contained in:
2025-09-14 10:59:52 -04:00
parent 1d3d929ddd
commit 7cb6c8521e
+2 -2
View File
@@ -330,7 +330,7 @@ public:
* An exception has occurred in one of a mind's threads. We need to * An exception has occurred in one of a mind's threads. We need to
* shut down all of that particular mind's threads. * shut down all of that particular mind's threads.
*/ */
context->caller->parent.finalizeReq( globalMind->finalizeReq(
std::bind( std::bind(
&MindShutdownIndOp::mindShutdownInd2, &MindShutdownIndOp::mindShutdownInd2,
context.get(), context)); context.get(), context));
@@ -351,7 +351,7 @@ public:
* So this should ideally be a loop * So this should ideally be a loop
* through all running Minds, calling finalizeReq on each one. * through all running Minds, calling finalizeReq on each one.
*/ */
context->caller->parent.finalizeReq( globalMind->finalizeReq(
std::bind( std::bind(
&MindShutdownIndOp::mindShutdownInd2, &MindShutdownIndOp::mindShutdownInd2,
context.get(), context)); context.get(), context));