RobinLinus %!s(int64=6) %!d(string=hai) anos
pai
achega
96e37aef40
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/scripts/network.js

+ 1 - 1
client/scripts/network.js

@@ -296,7 +296,7 @@ class RTCPeer extends Peer {
     _onConnectionStateChange(e) {
         console.log('RTC: state changed:', this._peer.connectionState);
         switch (this._peer.connectionState) {
-            'disconnected': this._onChannelClosed();
+            case 'disconnected': this._onChannelClosed();
             break;
         }
     }