summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2/Blobject.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-12-06 15:37:36 -0500
committerJoe George <joe@zeroc.com>2019-12-06 15:38:01 -0500
commit7918939c711ae2a8bc853c777d6a355d46f96870 (patch)
treea7c0b0d05bed7db8e54b7d59671be9abbb32a8b2 /cpp/src/Glacier2/Blobject.cpp
parentAdd missing break after locating IPEndpointInfo (diff)
downloadice-7918939c711ae2a8bc853c777d6a355d46f96870.tar.bz2
ice-7918939c711ae2a8bc853c777d6a355d46f96870.tar.xz
ice-7918939c711ae2a8bc853c777d6a355d46f96870.zip
Remove unnecessary session destruction in Glacier2 (Closes #653)
Diffstat (limited to 'cpp/src/Glacier2/Blobject.cpp')
-rw-r--r--cpp/src/Glacier2/Blobject.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/cpp/src/Glacier2/Blobject.cpp b/cpp/src/Glacier2/Blobject.cpp
index 20a8ae2e8cc..3ee669ff860 100644
--- a/cpp/src/Glacier2/Blobject.cpp
+++ b/cpp/src/Glacier2/Blobject.cpp
@@ -94,24 +94,6 @@ Glacier2::Blobject::invokeSent(bool, const AMD_Object_ice_invokePtr& amdCB)
void
Glacier2::Blobject::invokeException(const Exception& ex, const AMD_Object_ice_invokePtr& amdCB)
{
- //
- // If the connection has been lost, destroy the session.
- //
- if(_reverseConnection)
- {
- if(dynamic_cast<const SocketException*>(&ex) ||
- dynamic_cast<const TimeoutException*>(&ex) ||
- dynamic_cast<const ProtocolException*>(&ex))
- {
- try
- {
- _instance->sessionRouter()->destroySession(_reverseConnection);
- }
- catch(const Exception&)
- {
- }
- }
- }
amdCB->ice_exception(ex);
}