1
0

Merge pull request #2101 from mc-server/EquifaxCerts

Close Ssl Socket on destroy
This commit is contained in:
Alexander Harkness 2015-05-23 07:28:36 +01:00
commit e0fd3ce95b
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;
}