summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/IcePackNode.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-12-19 22:06:30 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-12-19 22:06:30 +0000
commitfc2fadbfc8a58bd22d9ec2f26c0fc80700bea619 (patch)
tree5301ea4c763e59cc2b1b07780f61c6d3963fcc1d /cpp/src/IcePack/IcePackNode.cpp
parentadding destroy flag (diff)
downloadice-fc2fadbfc8a58bd22d9ec2f26c0fc80700bea619.tar.bz2
ice-fc2fadbfc8a58bd22d9ec2f26c0fc80700bea619.tar.xz
ice-fc2fadbfc8a58bd22d9ec2f26c0fc80700bea619.zip
Fixed shutdown problem
Diffstat (limited to 'cpp/src/IcePack/IcePackNode.cpp')
-rw-r--r--cpp/src/IcePack/IcePackNode.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IcePack/IcePackNode.cpp b/cpp/src/IcePack/IcePackNode.cpp
index 90d4ac25bd9..740ab9888e2 100644
--- a/cpp/src/IcePack/IcePackNode.cpp
+++ b/cpp/src/IcePack/IcePackNode.cpp
@@ -312,11 +312,15 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator, const Free
activator->waitForShutdown();
ignoreInterrupt();
- waitQueue->destroy();
-
activator->destroy();
//
+ // The wait queue must be destroyed after the activator and before
+ // the communicator is shutdown.
+ //
+ waitQueue->destroy();
+
+ //
// We can now safelly shutdown the communicator.
//
communicator->shutdown();