summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-23 00:54:32 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-23 00:54:32 +0200
commit8f6788b2efc562559ed2f9b63c6f49c622887e67 (patch)
tree06bd67ac1d1069c36682514715643aab11424d6d /src/PolarSSL++
parentMerge pull request #2086 from Seadragon91/master (diff)
downloadcuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.tar
cuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.tar.gz
cuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.tar.bz2
cuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.tar.lz
cuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.tar.xz
cuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.tar.zst
cuberite-8f6788b2efc562559ed2f9b63c6f49c622887e67.zip
Diffstat (limited to 'src/PolarSSL++')
-rw-r--r--src/PolarSSL++/BlockingSslClientSocket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PolarSSL++/BlockingSslClientSocket.h b/src/PolarSSL++/BlockingSslClientSocket.h
index 319e82bf2..462ee95a7 100644
--- a/src/PolarSSL++/BlockingSslClientSocket.h
+++ b/src/PolarSSL++/BlockingSslClientSocket.h
@@ -21,6 +21,11 @@ class cBlockingSslClientSocket :
{
public:
cBlockingSslClientSocket(void);
+
+ ~cBlockingSslClientSocket(void)
+ {
+ Disconnect();
+ }
/** Connects to the specified server and performs SSL handshake.
Returns true if successful, false on failure. Sets internal error text on failure. */