summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2/RequestQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Glacier2/RequestQueue.cpp')
-rw-r--r--cpp/src/Glacier2/RequestQueue.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/src/Glacier2/RequestQueue.cpp b/cpp/src/Glacier2/RequestQueue.cpp
index 39064513d0e..0f3043d9495 100644
--- a/cpp/src/Glacier2/RequestQueue.cpp
+++ b/cpp/src/Glacier2/RequestQueue.cpp
@@ -145,13 +145,10 @@ Glacier2::RequestQueue::destroy()
// We don't want to wait for the RequestQueue thread, because this
// destroy() operation is called when sessions expire or are
// destroyed, in which case we do not want the session handler
- // thread to block here.
+ // thread to block here. Therefore we don't call join(), but
+ // instead detach the thread right after we start it.
//
//getThreadControl().join();
- if(getThreadControl().isAlive())
- {
- getThreadControl().detach();
- }
}
bool