diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-03-06 14:19:17 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-03-06 14:19:17 +0000 |
commit | bb485367b90219b73d9c5d07abee15f0b4a7bf9d (patch) | |
tree | 212534362858450d834aa1eec71d1c8130074f1a /cpp/demo/Ice/async/Server.cpp | |
parent | fixed typo in README (diff) | |
download | ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.bz2 ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.xz ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.zip |
Bug 1970
Diffstat (limited to 'cpp/demo/Ice/async/Server.cpp')
-rw-r--r-- | cpp/demo/Ice/async/Server.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
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(); } |