mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix disconnects.
This commit is contained in:
parent
4a59aa06d2
commit
25a13a177c
@ -240,10 +240,6 @@
|
||||
}
|
||||
|
||||
public websocketDisconnect() {
|
||||
if (!this.authenticated) {
|
||||
throw new Error('client not authenticated')
|
||||
}
|
||||
|
||||
if (!this.connected) {
|
||||
throw new Error('client not connected to websocket')
|
||||
}
|
||||
@ -264,10 +260,6 @@
|
||||
}
|
||||
|
||||
public webrtcDisconnect() {
|
||||
if (!this.connected) {
|
||||
throw new Error('client not connected to websocket')
|
||||
}
|
||||
|
||||
if (!this.watching) {
|
||||
throw new Error('client not connected to webrtc')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user