fix disconnects.

This commit is contained in:
Miroslav Šedivý 2021-03-25 15:09:46 +01:00
parent 4a59aa06d2
commit 25a13a177c

View File

@ -240,10 +240,6 @@
} }
public websocketDisconnect() { public websocketDisconnect() {
if (!this.authenticated) {
throw new Error('client not authenticated')
}
if (!this.connected) { if (!this.connected) {
throw new Error('client not connected to websocket') throw new Error('client not connected to websocket')
} }
@ -264,10 +260,6 @@
} }
public webrtcDisconnect() { public webrtcDisconnect() {
if (!this.connected) {
throw new Error('client not connected to websocket')
}
if (!this.watching) { if (!this.watching) {
throw new Error('client not connected to webrtc') throw new Error('client not connected to webrtc')
} }