Merge pull request #2101 from mc-server/EquifaxCerts
Close Ssl Socket on destroy
This commit is contained in:
commit
e0fd3ce95b
@ -21,6 +21,11 @@ class cBlockingSslClientSocket :
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cBlockingSslClientSocket(void);
|
cBlockingSslClientSocket(void);
|
||||||
|
|
||||||
|
~cBlockingSslClientSocket(void)
|
||||||
|
{
|
||||||
|
Disconnect();
|
||||||
|
}
|
||||||
|
|
||||||
/** Connects to the specified server and performs SSL handshake.
|
/** Connects to the specified server and performs SSL handshake.
|
||||||
Returns true if successful, false on failure. Sets internal error text on failure. */
|
Returns true if successful, false on failure. Sets internal error text on failure. */
|
||||||
|
@ -459,7 +459,6 @@ bool cMojangAPI::SecureRequest(const AString & a_ServerName, const AString & a_R
|
|||||||
a_Response.append((const char *)buf, (size_t)ret);
|
a_Response.append((const char *)buf, (size_t)ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
Socket.Disconnect();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user