summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp
index 05ef2bc..5b5fa27 100644
--- a/src/Thread.cpp
+++ b/src/Thread.cpp
@@ -89,7 +89,7 @@ Thread::stop()
{
if (_pthread_exists) {
_exit_flag = true;
- //pthread_cancel(_pthread);
+ pthread_cancel(_pthread);
pthread_join(_pthread, NULL);
_pthread_exists = false;
cout << "[" << _name << " Thread] Exiting." << endl;