diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-04-05 13:47:26 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-04-05 13:47:26 +0000 |
commit | 03e182533e755cecd58bf643c44bf25770f07239 (patch) | |
tree | a99679aa80ff305412483b471e28fce6c0a61421 /cppe/demo/IceE/chat/ChatClientDlg.cpp | |
parent | Sync RouterInfo changes with Ice (diff) | |
download | ice-03e182533e755cecd58bf643c44bf25770f07239.tar.bz2 ice-03e182533e755cecd58bf643c44bf25770f07239.tar.xz ice-03e182533e755cecd58bf643c44bf25770f07239.zip |
Icatch and ignore ConnectionLostException
Diffstat (limited to 'cppe/demo/IceE/chat/ChatClientDlg.cpp')
-rw-r--r-- | cppe/demo/IceE/chat/ChatClientDlg.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cppe/demo/IceE/chat/ChatClientDlg.cpp b/cppe/demo/IceE/chat/ChatClientDlg.cpp index 70ed25aa683..85ca4c60cc2 100644 --- a/cppe/demo/IceE/chat/ChatClientDlg.cpp +++ b/cppe/demo/IceE/chat/ChatClientDlg.cpp @@ -407,13 +407,18 @@ CChatClientDlg::OnLogin() { _router->destroySession(); } + catch(const Ice::ConnectionLostException&) + { + // + // Expected: the router closed the connection. + // + } catch(const Ice::Exception& ex) { AfxMessageBox(CString(ex.toString().c_str()), MB_OK|MB_ICONEXCLAMATION); } - _adapter->deactivate();
- _adapter->waitForDeactivate(); + _adapter->destroy(); _router = 0; } |