Add 1 second timeout to reconnect
This commit is contained in:
parent
c67a4adf83
commit
85febcf757
|
@ -30,7 +30,7 @@ startPeerConnection = () => {
|
|||
console.log("Connection failed, restarting...")
|
||||
peerConnection.close()
|
||||
peerConnection = null
|
||||
startPeerConnection()
|
||||
setTimeout(startPeerConnection, 1000)
|
||||
break
|
||||
default:
|
||||
console.log(peerConnection.iceConnectionState)
|
||||
|
|
Loading…
Reference in New Issue