diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-03-20 13:54:23 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-03-20 13:54:23 +0000 |
commit | 3afa5782160f7bbbaa92ff2c433556b701ce5961 (patch) | |
tree | 3cba1576335b428a0c035ce11227377085deb167 /cpp/demo/Glacier2/chat/Client.cpp | |
parent | Glacier2 fixes (diff) | |
download | ice-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-x | cpp/demo/Glacier2/chat/Client.cpp | 12 |
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) { |