summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-03-06 14:19:17 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-03-06 14:19:17 +0000
commitbb485367b90219b73d9c5d07abee15f0b4a7bf9d (patch)
tree212534362858450d834aa1eec71d1c8130074f1a /cpp
parentfixed typo in README (diff)
downloadice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.bz2
ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.xz
ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.zip
Bug 1970
Diffstat (limited to 'cpp')
-rw-r--r--cpp/demo/Ice/async/HelloI.cpp2
-rw-r--r--cpp/demo/Ice/async/Server.cpp16
2 files changed, 2 insertions, 16 deletions
diff --git a/cpp/demo/Ice/async/HelloI.cpp b/cpp/demo/Ice/async/HelloI.cpp
index 4f2779faab6..1b2ff1edff5 100644
--- a/cpp/demo/Ice/async/HelloI.cpp
+++ b/cpp/demo/Ice/async/HelloI.cpp
@@ -37,7 +37,5 @@ HelloI::shutdown(const Ice::Current& curr)
cout << "Shutting down..." << endl;
_workQueue->destroy();
- _workQueue->getThreadControl().join();
-
curr.adapter->getCommunicator()->shutdown();
}
diff --git a/cpp/demo/Ice/async/Server.cpp b/cpp/demo/Ice/async/Server.cpp
index a3d94180741..0e1f0ee4fcf 100644
--- a/cpp/demo/Ice/async/Server.cpp
+++ b/cpp/demo/Ice/async/Server.cpp
@@ -45,6 +45,7 @@ AsyncServer::run(int argc, char* argv[])
adapter->activate();
communicator()->waitForShutdown();
+ _workQueue->getThreadControl().join();
return EXIT_SUCCESS;
}
@@ -52,18 +53,5 @@ void
AsyncServer::interruptCallback(int)
{
_workQueue->destroy();
- _workQueue->getThreadControl().join();
-
- try
- {
- communicator()->destroy();
- }
- catch(const IceUtil::Exception& ex)
- {
- cerr << appName() << ": " << ex << endl;
- }
- catch(...)
- {
- cerr << appName() << ": unknown exception" << endl;
- }
+ communicator()->shutdown();
}