summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/callback/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Glacier2/callback/Client.cpp')
-rw-r--r--cpp/demo/Glacier2/callback/Client.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/callback/Client.cpp b/cpp/demo/Glacier2/callback/Client.cpp
index 364876a7f68..baf24c50747 100644
--- a/cpp/demo/Glacier2/callback/Client.cpp
+++ b/cpp/demo/Glacier2/callback/Client.cpp
@@ -213,6 +213,21 @@ CallbackClient::run(int argc, char* argv[])
}
while(cin.good() && c != 'x');
+ try
+ {
+ router->destroySession();
+ }
+ catch(const Glacier2::SessionNotExistException& ex)
+ {
+ cerr << ex << endl;
+ }
+ catch(const Ice::ConnectionLostException&)
+ {
+ //
+ // Expected: the router closed the connection.
+ //
+ }
+
return EXIT_SUCCESS;
}