diff options
Diffstat (limited to 'cppe/demo/IceE/chat/Client.cpp')
-rwxr-xr-x | cppe/demo/IceE/chat/Client.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cppe/demo/IceE/chat/Client.cpp b/cppe/demo/IceE/chat/Client.cpp index 976d3697afe..9c6b340e4c9 100755 --- a/cppe/demo/IceE/chat/Client.cpp +++ b/cppe/demo/IceE/chat/Client.cpp @@ -140,7 +140,17 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) } } while(true); - router->destroySession(); + + try + { + router->destroySession(); + } + catch(const Ice::LocalException&) + { + // + // Expected: the router closed the connection. + // + } } catch(const Ice::Exception& ex) { |