Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Oct 16, 2022
1 parent 6e4cacb commit 30da420
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion WindivertDotnet/WinDivertOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public virtual ValueTask<int> IOControlAsync(CancellationToken cancellationToken
{
return new ValueTask<int>(Task.FromCanceled<int>(cancellationToken));
}
else if (cancellationToken != CancellationToken.None)

if (cancellationToken != CancellationToken.None)
{
this.tokenRegistration = cancellationToken.Register(() => Kernel32Native.CancelIoEx(this.divert, this.nativeOverlapped));
}
Expand Down
2 changes: 1 addition & 1 deletion WindivertDotnet/WindivertDotnet.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
<Nullable>enable</Nullable>
<NoWarn>CA2012</NoWarn>
Expand Down

0 comments on commit 30da420

Please sign in to comment.