Skip to content
Snippets Groups Projects

memory leak fix (don't delete this again pls, i beg)

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -81,12 +81,12 @@ namespace InnoLabProjektDektopApp.Services
{
// this wait is here to prevent another event from being triggered before the previous one is handled
var task = Task.Run(() => watcher.WaitForNextEvent());/*
var task = Task.Run(() => watcher.WaitForNextEvent());
if (Task.WaitAny(task, Task.Delay(100)) == 0)
{
if (!isMonitoring) break;
Task.Run(() => HandleNewProcess(task.Result));
}*/
}
}
});
}
Loading