summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/chat/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-03-20 13:54:23 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-03-20 13:54:23 +0000
commit3afa5782160f7bbbaa92ff2c433556b701ce5961 (patch)
tree3cba1576335b428a0c035ce11227377085deb167 /cpp/demo/Glacier2/chat/Client.cpp
parentGlacier2 fixes (diff)
downloadice-3afa5782160f7bbbaa92ff2c433556b701ce5961.tar.bz2
ice-3afa5782160f7bbbaa92ff2c433556b701ce5961.tar.xz
ice-3afa5782160f7bbbaa92ff2c433556b701ce5961.zip
Catch exceptions from destroySession
Diffstat (limited to 'cpp/demo/Glacier2/chat/Client.cpp')
-rwxr-xr-xcpp/demo/Glacier2/chat/Client.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/demo/Glacier2/chat/Client.cpp b/cpp/demo/Glacier2/chat/Client.cpp
index 9d920b08ebd..660c0d6691f 100755
--- a/cpp/demo/Glacier2/chat/Client.cpp
+++ b/cpp/demo/Glacier2/chat/Client.cpp
@@ -165,7 +165,17 @@ public:
}
}
while(cin.good());
- router->destroySession();
+
+ try
+ {
+ router->destroySession();
+ }
+ catch(const Ice::LocalException&)
+ {
+ //
+ // Expected: the router closed the connection.
+ //
+ }
}
catch(const Ice::Exception& ex)
{