RobinLinus 6 년 전
부모
커밋
96e37aef40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
         }
     }