Skip to content

Commit f79c1ba

Browse files
committed
fix "No process is associated with this object"
1 parent a0d7018 commit f79c1ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/DiffEngineTray/Tracker.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ static void KillProcess(TrackedMove move, Process process)
228228
{
229229
process.Kill();
230230
}
231+
catch (InvalidOperationException)
232+
{
233+
// Race condition can cause "No process is associated with this object"
234+
}
231235
catch (Exception exception)
232236
{
233237
ExceptionHandler.Handle($"Failed to kill process. Command: {move.Exe} {move.Arguments}", exception);

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649</NoWarn>
5-
<Version>6.5.7</Version>
5+
<Version>6.5.8</Version>
66
<AssemblyVersion>1.0.0</AssemblyVersion>
77
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
88
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>

0 commit comments

Comments
 (0)