mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-05 15:29:35 +08:00
修复 潜在的服务端定时器重复问题
This commit is contained in:
parent
549560e998
commit
4e96ae0a27
@ -242,9 +242,9 @@
|
||||
}
|
||||
});
|
||||
|
||||
//服务器状态请求
|
||||
// 服务器状态请求
|
||||
PAGE.timerR = setInterval(function () {
|
||||
WS.sendMsg('server/console', serverName);
|
||||
WS.sendMsg('server/console', MCSERVER.listenServername);
|
||||
}, 3000);
|
||||
|
||||
//CPU
|
||||
@ -290,9 +290,9 @@
|
||||
});
|
||||
|
||||
MI.rListener('onend', function () {
|
||||
clearInterval(PAGE.timerR);
|
||||
MI.onDestroy('colmchangeEnd', PAGE.chartResizeFunc);
|
||||
MI.onDestroy('resize', PAGE.chartResizeFunc);
|
||||
PAGE.ChartLogIs = false;
|
||||
clearInterval(PAGE.timerR);
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user