diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-04-14 09:59:36 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-04-14 09:59:36 +0000 |
commit | 978b336fb47f5679f3b56fbbd190f6a10b658555 (patch) | |
tree | 68a9d9e3b8eb52fb4a356510c4d3a9181cf52aa6 /cpp/demo/Ice/session/SessionI.cpp | |
parent | remove mutex protection on shutdown. (diff) | |
download | ice-978b336fb47f5679f3b56fbbd190f6a10b658555.tar.bz2 ice-978b336fb47f5679f3b56fbbd190f6a10b658555.tar.xz ice-978b336fb47f5679f3b56fbbd190f6a10b658555.zip |
handle ObjectAdapterDeactivatedException.
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.cpp')
-rwxr-xr-x | cpp/demo/Ice/session/SessionI.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/demo/Ice/session/SessionI.cpp b/cpp/demo/Ice/session/SessionI.cpp index 9b1a2325bf6..ec4ffc296ef 100755 --- a/cpp/demo/Ice/session/SessionI.cpp +++ b/cpp/demo/Ice/session/SessionI.cpp @@ -90,7 +90,15 @@ SessionI::destroyCallback() << ((IceUtil::Time::now()-_refreshTime) > _timeout) << endl; for(list<HelloPrx>::const_iterator p = _objs.begin(); p != _objs.end(); ++p) { - _adapter->remove((*p)->ice_getIdentity()); + try + { + _adapter->remove((*p)->ice_getIdentity()); + } + catch(const Ice::ObjectAdapterDeactivatedException&) + { + // This method is called on shutdown of the server, in + // which case this exception is expected. + } } _objs.clear(); } |