summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_udp/ftnoir_tracker_udp.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-15 20:00:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-15 20:00:57 +0200
commitfc906d93916d04c81ae712e52045ed56c2788adc (patch)
tree24d05ee0358f83034e28227b14929429224f2682 /ftnoir_tracker_udp/ftnoir_tracker_udp.cpp
parente5644bff6531717503c14b209041c1a7524e9998 (diff)
Simplify tracker API
No need to have a separate finalization function, can just as well sleep in the destructor.
Diffstat (limited to 'ftnoir_tracker_udp/ftnoir_tracker_udp.cpp')
-rw-r--r--ftnoir_tracker_udp/ftnoir_tracker_udp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftnoir_tracker_udp/ftnoir_tracker_udp.cpp b/ftnoir_tracker_udp/ftnoir_tracker_udp.cpp
index e71d13bb..d67fb636 100644
--- a/ftnoir_tracker_udp/ftnoir_tracker_udp.cpp
+++ b/ftnoir_tracker_udp/ftnoir_tracker_udp.cpp
@@ -45,6 +45,8 @@ FTNoIR_Tracker::FTNoIR_Tracker()
FTNoIR_Tracker::~FTNoIR_Tracker()
{
+ should_quit = true;
+ wait();
if (inSocket) {
inSocket->close();
delete inSocket;