summaryrefslogtreecommitdiffhomepage
path: root/proto-ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-08-29 03:07:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-08-29 03:54:17 +0200
commita3fa8fe6f6b783358a107f3779f65249291a190d (patch)
tree154faca56b33a04a00d0e2c52283e4fc8f79816e /proto-ft
parent887fd08f2558dfa191a73fcc66ad784c4b07be1d (diff)
proto/freetrack: stop dummy trackir.exe with ephemeral location
Diffstat (limited to 'proto-ft')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp8
1 files changed, 8 insertions, 0 deletions
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));