NetworkAddressChange.Unix: fix error checking. (#65849)
authorTom Deseyn <tom.deseyn@gmail.com>
Thu, 24 Feb 2022 19:05:14 +0000 (20:05 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Feb 2022 19:05:14 +0000 (20:05 +0100)
src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Unix.cs

index 9042d44..b52087b 100644 (file)
@@ -194,7 +194,7 @@ namespace System.Net.NetworkInformation
 
                     Interop.Error result = ReadEvents(socket);
 
-                    if (result != Interop.Error.SUCCESS ||
+                    if (result != Interop.Error.SUCCESS &&
                         result != Interop.Error.EAGAIN)
                     {
                         throw new Win32Exception(result.Info().RawErrno);