Add a 500ms delay to setInterval to reduce CPU load
This commit is contained in:
parent
22e5a49dbd
commit
612bf04423
@ -251,7 +251,7 @@ export class WebsocketProvider extends Observable {
|
|||||||
// updates (which are updated every 15 seconds)
|
// updates (which are updated every 15 seconds)
|
||||||
/** @type {WebSocket} */ (this.ws).close()
|
/** @type {WebSocket} */ (this.ws).close()
|
||||||
}
|
}
|
||||||
})
|
}, 500)
|
||||||
if (connect) {
|
if (connect) {
|
||||||
this.connect()
|
this.connect()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user