Преглед на файлове

Reconnect on rejoin room

RobinLinus преди 6 години
родител
ревизия
9c9ca70d05
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      client/scripts/network.js

+ 1 - 1
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);
     }
 }