mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 20:22:16 +02:00
Add 1 second timeout to reconnect
This commit is contained in:
@ -30,7 +30,7 @@ startPeerConnection = () => {
|
||||
console.log("Connection failed, restarting...")
|
||||
peerConnection.close()
|
||||
peerConnection = null
|
||||
startPeerConnection()
|
||||
setTimeout(startPeerConnection, 1000)
|
||||
break
|
||||
default:
|
||||
console.log(peerConnection.iceConnectionState)
|
||||
|
Reference in New Issue
Block a user