Revert "fix: 框架启动概率性失败"

This reverts commit 9d92270931.
This commit is contained in:
手瓜一十雪
2024-08-13 15:14:42 +08:00
parent 36b1b0f663
commit 147bdfab95

View File

@@ -106,13 +106,7 @@ function registerInitCallback(callback) {
async function fetchServices(timeout = 10000) { async function fetchServices(timeout = 10000) {
return Promise.race([ return Promise.race([
new Promise((resolve) => { pollForNTInitializationCheck(),
setTimeout(() => {
pollForNTInitializationCheck().then(() => {
resolve(true);
});
});
}),
new Promise((resolve) => { new Promise((resolve) => {
setTimeout(() => resolve(false), timeout); setTimeout(() => resolve(false), timeout);
}), }),