1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Added workaround that is needed due to PowerShell bug in Windows 7

This commit is contained in:
Bryan Roe
2020-04-05 10:28:54 -07:00
parent 0c1d7d6caa
commit d25023e92b
2 changed files with 14 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -33,7 +33,14 @@ function netsecurityExists()
}
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
child.stderr.str = ''; child.stderr.on('data', function (c) { this.str += c.toString(); });
child.waitExit();
try
{
child.waitExit(2000);
}
catch(e)
{
return (false);
}
return (child.stdout.str != '');
}