未验证 提交 3725e591 编写于 作者: S SteVen Batten 提交者: GitHub

add timeout for getmac (#63815)

fixes #58392
上级 23377903
......@@ -92,6 +92,12 @@ function getMacMachineId(): Promise<string> {
resolve(undefined);
}
});
// Timeout due to hang with reduced privileges #58392
// TODO@sbatten: Remove this when getmac is patched
setTimeout(() => {
resolve(undefined);
}, 1000);
} catch (err) {
errors.onUnexpectedError(err);
resolve(undefined);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册