summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/chat/ChatClientDlg.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-04-05 13:47:26 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-04-05 13:47:26 +0000
commit03e182533e755cecd58bf643c44bf25770f07239 (patch)
treea99679aa80ff305412483b471e28fce6c0a61421 /cppe/demo/IceE/chat/ChatClientDlg.cpp
parentSync RouterInfo changes with Ice (diff)
downloadice-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.cpp9
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;
}