Source commit: 86a380532057c0d913678b9ca910cb319a8f422c
@@ -606,6 +606,14 @@ int CAsyncSslSocketLayer::Receive(void* lpBuf, int nBufLen, int nFlags)
void CAsyncSslSocketLayer::Close()
{
+ if (!m_nShutDown)
+ {
+ ShutDown();
+ while (!ShutDownComplete())
+ OnSend(0);
+ }
m_nShutDown = 0;
m_onCloseCalled = false;
ResetSslSession();