diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-10-24 10:07:47 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-10-24 10:07:47 +0000 |
commit | 7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f (patch) | |
tree | 573b60cfabd063723d8d2c4e9f81a4972581a2a6 /cpp/src/IceGrid/NodeSessionManager.cpp | |
parent | Removed Properties.sgml and ProxiesEndpoints.sgml. (diff) | |
download | ice-7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f.tar.bz2 ice-7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f.tar.xz ice-7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f.zip |
Fixed bug where node couldn't be interrupted if master isn't available
Diffstat (limited to 'cpp/src/IceGrid/NodeSessionManager.cpp')
-rw-r--r-- | cpp/src/IceGrid/NodeSessionManager.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/NodeSessionManager.cpp b/cpp/src/IceGrid/NodeSessionManager.cpp index 7bae899a9bf..71981be12fd 100644 --- a/cpp/src/IceGrid/NodeSessionManager.cpp +++ b/cpp/src/IceGrid/NodeSessionManager.cpp @@ -260,11 +260,18 @@ NodeSessionManager::create(const InternalRegistryPrx& replica) thread->tryCreateSession(); } -void +bool NodeSessionManager::waitForCreate() { assert(_thread); - _thread->waitForCreate(); + return _thread->waitForCreate(); +} + +void +NodeSessionManager::terminate() +{ + assert(_thread); + _thread->terminate(); } void |