mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 02:37:49 +02:00
Minor code refactoring
This commit is contained in:
parent
07c4ecfd0c
commit
152f2cdaa0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue