Skip to content
Snippets Groups Projects
Commit 362b2136 authored by Philipp Müller's avatar Philipp Müller
Browse files

don't delete this again pls, i beg

parent f3a27713
Branches
No related tags found
1 merge request!49memory leak fix (don't delete this again pls, i beg)
...@@ -81,12 +81,12 @@ namespace InnoLabProjektDektopApp.Services ...@@ -81,12 +81,12 @@ namespace InnoLabProjektDektopApp.Services
{ {
// this wait is here to prevent another event from being triggered before the previous one is handled // 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 (Task.WaitAny(task, Task.Delay(100)) == 0)
{ {
if (!isMonitoring) break; if (!isMonitoring) break;
Task.Run(() => HandleNewProcess(task.Result)); Task.Run(() => HandleNewProcess(task.Result));
}*/ }
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment