Przeglądaj źródła

Fixing assertion

When reconnecting a never-connected socket with a next layer [ssl], state is unconnected, not notsock.

Source commit: b7e4e52d7906e2f8145f5783e6ff7c62310a2807
Martin Prikryl 6 lat temu
rodzic
commit
2eb9f35dbd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      source/filezilla/AsyncSocketExLayer.cpp

+ 1 - 1
source/filezilla/AsyncSocketExLayer.cpp

@@ -720,7 +720,7 @@ BOOL CAsyncSocketExLayer::Create(UINT nSocketPort, int nSocketType,
 
 BOOL CAsyncSocketExLayer::CreateNext(UINT nSocketPort, int nSocketType, long lEvent, LPCTSTR lpszSocketAddress, int nFamily /*=AF_INET*/)
 {
-  DebugAssert(GetLayerState()==notsock);
+  DebugAssert((GetLayerState() == notsock) || (GetLayerState() == unconnected));
   BOOL res = FALSE;
 
   m_nFamily = nFamily;