Browse Source

Reconnect on rejoin room

RobinLinus 6 years ago
parent
commit
9c9ca70d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/scripts/network.js

+ 1 - 1
client/scripts/network.js

@@ -324,7 +324,7 @@ class RTCPeer extends Peer {
     refresh() {
     refresh() {
         // check if channel open. otherwise create one
         // check if channel open. otherwise create one
         if (this._peer && this._channel && this._channel.readyState !== 'open') return;
         if (this._peer && this._channel && this._channel.readyState !== 'open') return;
-        this._createChannel(this._peerId, this._isCaller);
+        this._start(this._peerId, this._isCaller);
     }
     }
 }
 }