summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslTransceiver.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-12-12 16:43:55 +0000
committerMarc Laukien <marc@zeroc.com>2003-12-12 16:43:55 +0000
commitbe72389924fa605eb2fb3b8eadb3a0fdab96a5f9 (patch)
tree040fb2314449de17d7069674565432d38fe7b5dc /cpp/src/IceSSL/SslTransceiver.cpp
parentfixes (diff)
downloadice-be72389924fa605eb2fb3b8eadb3a0fdab96a5f9.tar.bz2
ice-be72389924fa605eb2fb3b8eadb3a0fdab96a5f9.tar.xz
ice-be72389924fa605eb2fb3b8eadb3a0fdab96a5f9.zip
fixes
Diffstat (limited to 'cpp/src/IceSSL/SslTransceiver.cpp')
-rw-r--r--cpp/src/IceSSL/SslTransceiver.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/SslTransceiver.cpp b/cpp/src/IceSSL/SslTransceiver.cpp
index c452ad67610..1a3970fbaf0 100644
--- a/cpp/src/IceSSL/SslTransceiver.cpp
+++ b/cpp/src/IceSSL/SslTransceiver.cpp
@@ -78,8 +78,16 @@ IceSSL::SslTransceiver::close()
}
assert(_fd != INVALID_SOCKET);
- closeSocket(_fd);
- _fd = INVALID_SOCKET;
+ try
+ {
+ closeSocket(_fd);
+ _fd = INVALID_SOCKET;
+ }
+ catch(const SocketException& ex)
+ {
+ _fd = INVALID_SOCKET;
+ throw;
+ }
}
void