From 010ecf557e0794dacdb43d9952577825e2dc1e01 Mon Sep 17 00:00:00 2001 From: Owen Green Date: Wed, 9 Dec 2020 11:10:26 +0000 Subject: [PATCH] Wrapper: try to avoid crash if server is shut(ting) down when thread returns --- include/wrapper/NonRealtime.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wrapper/NonRealtime.hpp b/include/wrapper/NonRealtime.hpp index 6e01e4a..3993d72 100644 --- a/include/wrapper/NonRealtime.hpp +++ b/include/wrapper/NonRealtime.hpp @@ -343,7 +343,7 @@ namespace impl { FifoMsg msg; msg.Set(world, runCompletion, tidyup, c); - ft->fSendMsgToRT(world,msg); + if(world->mRunning) ft->fSendMsgToRT(world,msg); } struct CommandProcess: public NRTCommand