summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-14 09:59:36 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-14 09:59:36 +0000
commit978b336fb47f5679f3b56fbbd190f6a10b658555 (patch)
tree68a9d9e3b8eb52fb4a356510c4d3a9181cf52aa6 /cpp/demo/Ice/session/SessionI.cpp
parentremove mutex protection on shutdown. (diff)
downloadice-978b336fb47f5679f3b56fbbd190f6a10b658555.tar.bz2
ice-978b336fb47f5679f3b56fbbd190f6a10b658555.tar.xz
ice-978b336fb47f5679f3b56fbbd190f6a10b658555.zip
handle ObjectAdapterDeactivatedException.
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.cpp')
-rwxr-xr-xcpp/demo/Ice/session/SessionI.cpp10
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();
}