This commit is contained in:
Jozen Blue Martinez 2022-02-09 16:57:48 +08:00
parent 869ddc164f
commit 2fe46c3a6a
No known key found for this signature in database
GPG key ID: FB8FD46C9087D829

View file

@ -216,7 +216,7 @@ export default class WebNowPlaying {
if (this.ws) { if (this.ws) {
this.ws.send('STATE:0'); this.ws.send('STATE:0');
this.ws.onclose = () => void 0; // disable onclose handler first to stop it from retrying this.ws.onclose = () => void 0; // disable onclose handler first to stop it from retrying
this.ws.close(); this.ws.close();
} }
if (this.wsapiConn) { if (this.wsapiConn) {
this.wsapiConn.close(); this.wsapiConn.close();