Load the status page list earlier

This commit is contained in:
Louis Lam 2022-03-21 15:28:59 +08:00
parent cafa61e3af
commit 3adda48f3a

View File

@ -1404,6 +1404,8 @@ async function afterLogin(socket, user) {
await sleep(500);
await StatusPage.sendStatusPageList(io, socket);
for (let monitorID in monitorList) {
await sendHeartbeatList(socket, monitorID);
}
@ -1415,8 +1417,6 @@ async function afterLogin(socket, user) {
for (let monitorID in monitorList) {
await Monitor.sendStats(io, monitorID, user.id);
}
await StatusPage.sendStatusPageList(io, socket);
}
async function getMonitorJSONList(userID) {