Browse Source

Deadlock when closing connection when TLS was never established (caused by 268f6355)

Source commit: 24d6adda3af26be8871a9973338011cfe8d0c86c
Martin Prikryl 4 years ago
parent
commit
2c0b486de5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/filezilla/AsyncSslSocketLayer.cpp

+ 1 - 1
source/filezilla/AsyncSslSocketLayer.cpp

@@ -606,7 +606,7 @@ int CAsyncSslSocketLayer::Receive(void* lpBuf, int nBufLen, int nFlags)
 
 void CAsyncSslSocketLayer::Close()
 {
-  if (!m_nShutDown)
+  if (!m_nShutDown && m_bSslEstablished)
   {
     ShutDown();
     while (!ShutDownComplete())