From 96e37aef40c7a69203b172655b290732dc236dc3 Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Fri, 21 Sep 2018 19:25:01 +0200 Subject: [PATCH] Fix typo --- client/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/network.js b/client/scripts/network.js index 4831717..fdc1f8c 100644 --- a/client/scripts/network.js +++ b/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; } }