summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionFactoryI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-18 08:47:38 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-18 08:47:38 +0000
commit29de5af8c250c086571f8a800a3a3d0e974e99c6 (patch)
tree29190ff52e42697b663ad379f1ebb495f21c42de /cpp/demo/Ice/session/SessionFactoryI.cpp
parentminor updates. (diff)
downloadice-29de5af8c250c086571f8a800a3a3d0e974e99c6.tar.bz2
ice-29de5af8c250c086571f8a800a3a3d0e974e99c6.tar.xz
ice-29de5af8c250c086571f8a800a3a3d0e974e99c6.zip
fixes.
Diffstat (limited to 'cpp/demo/Ice/session/SessionFactoryI.cpp')
-rwxr-xr-xcpp/demo/Ice/session/SessionFactoryI.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/demo/Ice/session/SessionFactoryI.cpp b/cpp/demo/Ice/session/SessionFactoryI.cpp
index a6dcb48f2f4..55e3924ee79 100755
--- a/cpp/demo/Ice/session/SessionFactoryI.cpp
+++ b/cpp/demo/Ice/session/SessionFactoryI.cpp
@@ -92,7 +92,16 @@ SessionFactoryI::reap()
if(p->session->destroyed())
{
p->session->destroyCallback();
- _adapter->remove(p->id);
+ try
+ {
+ _adapter->remove(p->id);
+ }
+ catch(const Ice::ObjectAdapterDeactivatedException&)
+ {
+ // This method can be called while the server is
+ // shutting down, in which case this exception is
+ // expected.
+ }
p = _sessions.erase(p);
}
else