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:
File diff suppressed because one or more lines are too long
@@ -33,7 +33,14 @@ function netsecurityExists()
|
|||||||
}
|
}
|
||||||
child.stdout.str = ''; child.stdout.on('data', function (c) { this.str += c.toString(); });
|
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.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 != '');
|
return (child.stdout.str != '');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user