mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 20:24:36 -05:00
made sure to use Promise.allSettled
instead of sleeping for 500ms after login (#4592)
This commit is contained in:
parent
0e3b3a9ab8
commit
975761b448
@ -1619,15 +1619,15 @@ async function afterLogin(socket, user) {
|
|||||||
socket.join(user.id);
|
socket.join(user.id);
|
||||||
|
|
||||||
let monitorList = await server.sendMonitorList(socket);
|
let monitorList = await server.sendMonitorList(socket);
|
||||||
await sendInfo(socket);
|
await Promise.allSettled([
|
||||||
await server.sendMaintenanceList(socket);
|
sendInfo(socket),
|
||||||
await sendNotificationList(socket);
|
server.sendMaintenanceList(socket),
|
||||||
await sendProxyList(socket);
|
sendNotificationList(socket),
|
||||||
await sendDockerHostList(socket);
|
sendProxyList(socket),
|
||||||
await sendAPIKeyList(socket);
|
sendDockerHostList(socket),
|
||||||
await sendRemoteBrowserList(socket);
|
sendAPIKeyList(socket),
|
||||||
|
sendRemoteBrowserList(socket),
|
||||||
await sleep(500);
|
]);
|
||||||
|
|
||||||
await StatusPage.sendStatusPageList(io, socket);
|
await StatusPage.sendStatusPageList(io, socket);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user