summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/dispatcher/Dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/dispatcher/Dispatcher.cpp')
-rw-r--r--cpp/test/Ice/dispatcher/Dispatcher.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/test/Ice/dispatcher/Dispatcher.cpp b/cpp/test/Ice/dispatcher/Dispatcher.cpp
index f278263b9ed..2ff52743958 100644
--- a/cpp/test/Ice/dispatcher/Dispatcher.cpp
+++ b/cpp/test/Ice/dispatcher/Dispatcher.cpp
@@ -21,11 +21,6 @@ Dispatcher::Dispatcher()
__setNoDelete(false);
}
-Dispatcher::~Dispatcher()
-{
- _instance = 0;
-}
-
void
Dispatcher::dispatch(const Ice::DispatcherCallPtr& call, const Ice::ConnectionPtr&)
{
@@ -47,6 +42,7 @@ Dispatcher::terminate()
}
_instance->getThreadControl().join();
+ _instance = 0;
}
bool