From 820b76d894cf4a9509b11e88f590cc93ac93e8ef Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 22 Jun 2021 16:25:41 +0100 Subject: [PATCH] Fix deadlock on quit for Linux --- simgear/nasal/NasalEmesaryInterface.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/simgear/nasal/NasalEmesaryInterface.cxx b/simgear/nasal/NasalEmesaryInterface.cxx index 609dd214..65e42826 100644 --- a/simgear/nasal/NasalEmesaryInterface.cxx +++ b/simgear/nasal/NasalEmesaryInterface.cxx @@ -57,7 +57,11 @@ namespace nasal class ThreadedGarbageCollector : public SGExclusiveThread { public: ThreadedGarbageCollector() : SGExclusiveThread() {} - virtual ~ThreadedGarbageCollector() {} + + virtual ~ThreadedGarbageCollector() + { + terminate(); + } int process() override{ return naGarbageCollect();