summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SelectorThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/SelectorThread.cpp')
-rw-r--r--cpp/src/Ice/SelectorThread.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/Ice/SelectorThread.cpp b/cpp/src/Ice/SelectorThread.cpp
index c76505c240e..4c740810c69 100644
--- a/cpp/src/Ice/SelectorThread.cpp
+++ b/cpp/src/Ice/SelectorThread.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -25,7 +25,6 @@ IceInternal::SelectorThread::SelectorThread(const InstancePtr& instance) :
_selector(instance),
_timer(_instance->timer())
{
-
__setNoDelete(true);
try
{
@@ -38,11 +37,17 @@ IceInternal::SelectorThread::SelectorThread(const InstancePtr& instance) :
Error out(_instance->initializationData().logger);
out << "cannot create thread for selector thread:\n" << ex;
}
+ _thread = 0;
__setNoDelete(false);
throw;
}
catch(...)
{
+ {
+ Error out(_instance->initializationData().logger);
+ out << "cannot create thread for selector thread";
+ }
+ _thread = 0;
__setNoDelete(false);
throw;
}