Skip to content

Commit

Permalink
fix "No process is associated with this object"
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Mar 8, 2021
1 parent a0d7018 commit f79c1ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/DiffEngineTray/Tracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ static void KillProcess(TrackedMove move, Process process)
{
process.Kill();
}
catch (InvalidOperationException)
{
// Race condition can cause "No process is associated with this object"
}
catch (Exception exception)
{
ExceptionHandler.Handle($"Failed to kill process. Command: {move.Exe} {move.Arguments}", exception);
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649</NoWarn>
<Version>6.5.7</Version>
<Version>6.5.8</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>
Expand Down

0 comments on commit f79c1ba

Please sign in to comment.