Skip to content

Commit

Permalink
加上释放进程逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Apr 1, 2024
1 parent 04a32df commit 6c6b92a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UnoSpySnoop/UI/UnoSpySnoopDebugger/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ private async Task RefreshProcessInfoList()

#endif

await Parallel.ForEachAsync(processes, async (process, _) => { await PeekProcess(process); });
await Parallel.ForEachAsync(processes, async (process, _) =>
{
await PeekProcess(process);
process.Dispose();
});
}

private async Task PeekProcess(Process process)
Expand Down

0 comments on commit 6c6b92a

Please sign in to comment.