mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
webrtc: do not connect if websocket unavailable.
This commit is contained in:
parent
69f617ef45
commit
0974beaf4a
@ -72,8 +72,10 @@ class WebrtcReconnecter extends ReconnecterAbstract {
|
||||
}
|
||||
|
||||
public async connect() {
|
||||
if (this._websocket.connected) {
|
||||
this._websocket.send(EVENT.SIGNAL_REQUEST, { video: this._state.webrtc.video })
|
||||
}
|
||||
}
|
||||
|
||||
public async disconnect() {
|
||||
this._webrtc.disconnect()
|
||||
|
Loading…
Reference in New Issue
Block a user