mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
commit
62e0c57a50
@ -107,7 +107,13 @@ function registerInitCallback(callback) {
|
||||
|
||||
async function fetchServices(timeout = 10000) {
|
||||
return Promise.race([
|
||||
pollForNTInitializationCheck(),
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
pollForNTInitializationCheck().then(() => {
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
}),
|
||||
new Promise((resolve) => {
|
||||
setTimeout(() => resolve(false), timeout);
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user