|
|
@@ -195,10 +195,7 @@ export default class RTC extends Listenable {
|
|
195
|
195
|
RTCUtils.removeListener(RTCEvents.DEVICE_LIST_CHANGED, this._onDeviceListChanged);
|
|
196
|
196
|
|
|
197
|
197
|
if (this._channelOpenListener) {
|
|
198
|
|
- this.removeListener(
|
|
199
|
|
- RTCEvents.DATA_CHANNEL_OPEN,
|
|
200
|
|
- this._channelOpenListener
|
|
201
|
|
- );
|
|
|
198
|
+ this.removeListener(RTCEvents.DATA_CHANNEL_OPEN, this._channelOpenListener);
|
|
202
|
199
|
}
|
|
203
|
200
|
}
|
|
204
|
201
|
|
|
|
@@ -281,9 +278,6 @@ export default class RTC extends Listenable {
|
|
281
|
278
|
logError(error, 'VideoTypeMessage', this._videoType);
|
|
282
|
279
|
}
|
|
283
|
280
|
}
|
|
284
|
|
-
|
|
285
|
|
- this.removeListener(RTCEvents.DATA_CHANNEL_OPEN, this._channelOpenListener);
|
|
286
|
|
- this._channelOpenListener = null;
|
|
287
|
281
|
};
|
|
288
|
282
|
this.addListener(RTCEvents.DATA_CHANNEL_OPEN, this._channelOpenListener);
|
|
289
|
283
|
|