mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix watcher launching
This commit is contained in:
parent
049d59a995
commit
cab047d7a9
@ -389,8 +389,10 @@ namespace Bloxstrap
|
|||||||
if (autoclosePids.Any())
|
if (autoclosePids.Any())
|
||||||
args += $";{String.Join(',', autoclosePids)}";
|
args += $";{String.Join(',', autoclosePids)}";
|
||||||
|
|
||||||
using (var ipl = new InterProcessLock("Watcher"))
|
if (App.Settings.Prop.EnableActivityTracking || autoclosePids.Any())
|
||||||
{
|
{
|
||||||
|
using var ipl = new InterProcessLock("Watcher");
|
||||||
|
|
||||||
if (ipl.IsAcquired)
|
if (ipl.IsAcquired)
|
||||||
Process.Start(Paths.Process, $"-watcher \"{args}\"");
|
Process.Start(Paths.Process, $"-watcher \"{args}\"");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user