make monitor start() and stop() async

This commit is contained in:
Thomas Spalinger
2023-02-23 16:16:49 +00:00
parent 7e3734af53
commit 7f88aacbe7
2 changed files with 8 additions and 8 deletions

View File

@@ -199,7 +199,7 @@ class Monitor extends BeanModel {
* Start monitor
* @param {Server} io Socket server instance
*/
start(io) {
async start(io) {
let previousBeat = null;
let retries = 0;
@@ -836,7 +836,7 @@ class Monitor extends BeanModel {
}
/** Stop monitor */
stop() {
async stop() {
clearTimeout(this.heartbeatInterval);
this.isStop = true;