From 9c9ca70d05fb2894d4e8113acc3a99a7b582ec78 Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Fri, 21 Sep 2018 20:55:15 +0200 Subject: [PATCH] Reconnect on rejoin room --- client/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/network.js b/client/scripts/network.js index 90ae29e..bf30fe5 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -324,7 +324,7 @@ class RTCPeer extends Peer { refresh() { // check if channel open. otherwise create one if (this._peer && this._channel && this._channel.readyState !== 'open') return; - this._createChannel(this._peerId, this._isCaller); + this._start(this._peerId, this._isCaller); } }