Skip to content

Commit

Permalink
ContainerJobActivator: Fixed exception when disposing handlers that i…
Browse files Browse the repository at this point in the history
…mplemented IAsyncDisposable
  • Loading branch information
jhartmann123 committed May 4, 2022
1 parent ff09707 commit cee0c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>6.2.0</Version>
<Version>6.2.1</Version>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Hangfire/src/ContainerJobActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override object Resolve(Type type)
public override void DisposeScope()
{
base.DisposeScope();
scope.Dispose();
scope.DisposeScopeAsync().Wait();
}
}
}

0 comments on commit cee0c29

Please sign in to comment.