Przeglądaj źródła

Minor code refactoring

Tal Aloni 8 lat temu
rodzic
commit
152f2cdaa0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      SMBLibrary/Server/SMBServer.cs

+ 2 - 2
SMBLibrary/Server/SMBServer.cs

@@ -99,7 +99,7 @@ namespace SMBLibrary.Server
                 // See http://stackoverflow.com/questions/7704417/socket-endaccept-error-10054
                 if (ex.ErrorCode == WSAECONNRESET)
                 {
-                    m_listenerSocket.BeginAccept(ConnectRequestCallback, m_listenerSocket);
+                    listenerSocket.BeginAccept(ConnectRequestCallback, listenerSocket);
                 }
                 Log(Severity.Debug, "Connection request error {0}", ex.ErrorCode);
                 return;
@@ -123,7 +123,7 @@ namespace SMBLibrary.Server
             catch (SocketException)
             {
             }
-            m_listenerSocket.BeginAccept(ConnectRequestCallback, m_listenerSocket);
+            listenerSocket.BeginAccept(ConnectRequestCallback, listenerSocket);
         }
 
         private void ReceiveCallback(IAsyncResult result)