summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_UDP
diff options
context:
space:
mode:
Diffstat (limited to 'FTNoIR_Tracker_UDP')
-rw-r--r--FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h2
-rw-r--r--FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
index 506eb157..b5d644fd 100644
--- a/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
+++ b/FTNoIR_Tracker_UDP/FTNoIR_Tracker_UDP.h
@@ -16,7 +16,7 @@ public:
void Release();
void Initialize( QFrame *videoframe );
void StartTracker( HWND parent_window );
- void StopTracker();
+ void StopTracker( bool exit );
bool GiveHeadPoseData(THeadPoseData *data);
void loadSettings();
diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
index 1905a3bd..ba140cbb 100644
--- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
+++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp
@@ -127,11 +127,12 @@ void FTNoIR_Tracker_UDP::StartTracker( HWND parent_window )
return;
}
-void FTNoIR_Tracker_UDP::StopTracker()
+void FTNoIR_Tracker_UDP::StopTracker( bool exit )
{
//
// OK, the thread is not stopped, doing this. That might be dangerous anyway...
//
+ if (exit || !exit) return;
return;
}