From a3fa8fe6f6b783358a107f3779f65249291a190d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Aug 2021 03:07:49 +0200 Subject: proto/freetrack: stop dummy trackir.exe with ephemeral location --- proto-ft/ftnoir_protocol_ft.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 252819bd..69a3c23f 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -26,7 +26,15 @@ freetrack::~freetrack() settings_ft.setValue("Path", ""); settings_npclient.setValue("Path", ""); + + if (dummyTrackIR.state() == dummyTrackIR.Running) + { + dummyTrackIR.kill(); + dummyTrackIR.waitForFinished(100); + } } + else + dummyTrackIR.close(); } static_assert(sizeof(LONG) == sizeof(std::int32_t)); -- cgit v1.2.3