Skip to content

Commit

Permalink
Client: Removed unneeded connectivity check before invoking EndReceive
Browse files Browse the repository at this point in the history
  • Loading branch information
TalAloni committed Jun 3, 2024
1 parent fe22636 commit 8d7a6e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions SMBLibrary/Client/SMB1Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,6 @@ private void OnClientSocketReceive(IAsyncResult ar)

lock (state.ReceiveBuffer)
{
if (!clientSocket.Connected)
{
state.ReceiveBuffer.Dispose();
return;
}

int numberOfBytesReceived = 0;
try
{
Expand Down
6 changes: 0 additions & 6 deletions SMBLibrary/Client/SMB2Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,6 @@ private void OnClientSocketReceive(IAsyncResult ar)

lock (state.ReceiveBuffer)
{
if (!clientSocket.Connected)
{
state.ReceiveBuffer.Dispose();
return;
}

int numberOfBytesReceived = 0;
try
{
Expand Down

0 comments on commit 8d7a6e0

Please sign in to comment.