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,7 +72,9 @@ class WebrtcReconnecter extends ReconnecterAbstract {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async connect() {
|
public async connect() {
|
||||||
this._websocket.send(EVENT.SIGNAL_REQUEST, { video: this._state.webrtc.video })
|
if (this._websocket.connected) {
|
||||||
|
this._websocket.send(EVENT.SIGNAL_REQUEST, { video: this._state.webrtc.video })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async disconnect() {
|
public async disconnect() {
|
||||||
|
Loading…
Reference in New Issue
Block a user