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

+ 1 - 1
client/scripts/network.js

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