1
0
Fork 0

Close Ssl Socket on destroy

* Fixes #2072
This commit is contained in:
Tiger Wang 2015-05-22 23:54:32 +01:00
parent 6bafff0560
commit 8f6788b2ef
2 changed files with 5 additions and 1 deletions

View File

@ -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. */

View File

@ -459,7 +459,6 @@ bool cMojangAPI::SecureRequest(const AString & a_ServerName, const AString & a_R
a_Response.append((const char *)buf, (size_t)ret);
}
Socket.Disconnect();
return true;
}