This commit is contained in:
RobinLinus 2018-09-21 19:25:01 +02:00
parent 31e5f635d1
commit 96e37aef40

View file

@ -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;
}
}