summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/IceGridNode.cpp
diff options
context:
space:
mode:
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 027a266a3a3..789c3857332 100644
--- a/cpp/src/IceGrid/IceGridNode.cpp
+++ b/cpp/src/IceGrid/IceGridNode.cpp
@@ -167,16 +167,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;
}
@@ -669,7 +665,6 @@ NodeService::stop()
{
assert(false);
}
- _activator = 0;
}
if(_timer)