Merge pull request #2101 from mc-server/EquifaxCerts
Close Ssl Socket on destroy
This commit is contained in:
commit
e0fd3ce95b
@ -22,6 +22,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. */
|
||||
bool Connect(const AString & a_ServerName, UInt16 a_Port);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user