Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update: A little fix
  • Loading branch information
liveans committed Sep 2, 2022
commit 21edab2b0143472717ff7ed5351c631a29060504
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static SocketException CreateSocketException(int socketError, EndPoint en
int nativeErr = (int)socketError;

// If an interop error was not found, then don't invoke Info().RawErrno as that will fail with assert.
if (SocketErrorPal.TryGetNativeErrorForSocketError(socketError, out Interop.Error interopErr))
if (SocketErrorPal.TryGetNativeErrorForSocketError((SocketError)socketError, out Interop.Error interopErr))
{
nativeErr = interopErr.Info().RawErrno;
}
Expand Down