mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Use Safehandle job api
No handle leak
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
@@ -128,7 +128,7 @@ namespace Netch.Controllers
|
||||
{
|
||||
if (guard.Instance != null)
|
||||
{
|
||||
ChildProcessTracker.AddProcess(guard.Instance);
|
||||
Global.Job.AddProcess(guard.Instance);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace Netch.Controllers
|
||||
{
|
||||
if (guard.Instance != null)
|
||||
{
|
||||
ChildProcessTracker.AddProcess(guard.Instance);
|
||||
Global.Job.AddProcess(guard.Instance);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user