summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2/RequestQueue.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2005-04-02 13:51:11 +0000
committerMarc Laukien <marc@zeroc.com>2005-04-02 13:51:11 +0000
commit55a12097c0b59d768d673e5ae40bd672e7f69c02 (patch)
tree4facbdf00ae457a700b081d11ae75c30c547e360 /cpp/src/Glacier2/RequestQueue.cpp
parentFixed http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=178. (diff)
downloadice-55a12097c0b59d768d673e5ae40bd672e7f69c02.tar.bz2
ice-55a12097c0b59d768d673e5ae40bd672e7f69c02.tar.xz
ice-55a12097c0b59d768d673e5ae40bd672e7f69c02.zip
fixed detach bug in Glacier2
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