Skip to content

Commit

Permalink
Fixed issue detecting invalid epoll file descriptors on ARM64 - Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-will committed Sep 18, 2022
1 parent 36c0ddc commit 8d49853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocketCANSharp/SafeFileDescriptorHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override bool IsInvalid
{
get
{
return IsClosed || base.IsInvalid;
return IsClosed || base.IsInvalid || (int)handle.ToInt64() == -1;
}
}

Expand Down

0 comments on commit 8d49853

Please sign in to comment.