summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/IceGridNode.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-02-06 12:51:09 +0100
committerBenoit Foucher <benoit@zeroc.com>2017-02-06 12:51:09 +0100
commiteb97ed50f2aa8f94198efccb1fe4d91390d9a334 (patch)
tree6b20569420b0186a48445c371bafd058b7d817df /cpp/src/IceGrid/IceGridNode.cpp
parentICE-7359 - Fix usage of PyTuple_SET_ITEM (diff)
downloadice-eb97ed50f2aa8f94198efccb1fe4d91390d9a334.tar.bz2
ice-eb97ed50f2aa8f94198efccb1fe4d91390d9a334.tar.xz
ice-eb97ed50f2aa8f94198efccb1fe4d91390d9a334.zip
Fixed ICE-7428 - Potential IceGrid node crash on shutdown
Diffstat (limited to 'cpp/src/IceGrid/IceGridNode.cpp')
-rw-r--r--cpp/src/IceGrid/IceGridNode.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/IceGridNode.cpp b/cpp/src/IceGrid/IceGridNode.cpp
index 2ace825d1ac..c8480146b6e 100644
--- a/cpp/src/IceGrid/IceGridNode.cpp
+++ b/cpp/src/IceGrid/IceGridNode.cpp
@@ -165,16 +165,12 @@ NodeService::~NodeService()
{
}
-
bool
NodeService::shutdown()
{
- assert(_activator);
+ assert(_activator && _sessions.get());
_activator->shutdown();
- if(_sessions.get())
- {
- _sessions->terminate(); // Unblock the main thread if it's blocked on waitForCreate()
- }
+ _sessions->terminate(); // Unblock the main thread if it's blocked on waitForCreate()
return true;
}
@@ -674,7 +670,6 @@ NodeService::stop()
{
assert(false);
}
- _activator = 0;
}
if(_timer)