We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14f9dfe commit ed4f3d9Copy full SHA for ed4f3d9
source/nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs
@@ -367,7 +367,7 @@ private void AcceptThreadFunc()
367
}
368
catch (SocketException)
369
{
370
- if (retry > 5)
+ if (++retry > 5)
371
372
// If request to stop listener flag is set or locking call is interupted return
373
// On exception we stop the service and record the exception.
@@ -420,7 +420,7 @@ private void AcceptThreadFunc()
420
netStream.ReadTimeout = 10000;
421
422
423
- catch(SocketException)
+ catch
424
425
if (netStream != null)
426
0 commit comments