diff options
Diffstat (limited to 'cpp/test/Ice/timeout/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/timeout/TestI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/test/Ice/timeout/TestI.cpp b/cpp/test/Ice/timeout/TestI.cpp index 49f69df816f..9d1a2eab7d8 100644 --- a/cpp/test/Ice/timeout/TestI.cpp +++ b/cpp/test/Ice/timeout/TestI.cpp @@ -57,7 +57,8 @@ TimeoutI::holdAdapter(Ice::Int to, const Ice::Current& current) { current.adapter->hold(); IceUtil::ThreadPtr thread = new ActivateAdapterThread(current.adapter, to); - thread->start(); + IceUtil::ThreadControl threadControl = thread->start(); + threadControl.detach(); } void |