Skip to content

Commit

Permalink
Fixes in AcceptThread method (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszKlatecki authored Apr 24, 2020
1 parent 14f9dfe commit ed4f3d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private void AcceptThreadFunc()
}
catch (SocketException)
{
if (retry > 5)
if (++retry > 5)
{
// If request to stop listener flag is set or locking call is interupted return
// On exception we stop the service and record the exception.
Expand Down Expand Up @@ -420,7 +420,7 @@ private void AcceptThreadFunc()
netStream.ReadTimeout = 10000;
}
}
catch(SocketException)
catch
{
if (netStream != null)
{
Expand Down

0 comments on commit ed4f3d9

Please sign in to comment.