Fix raised hand handler not detached when peer is destroyed

This fixes a memory leak, as the reference to the Peer object was
retained forever by the webrtc object.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2021-05-28 13:56:32 +02:00
Родитель 394caa68f7
Коммит 08afd89909
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -97,6 +97,7 @@ CallParticipantModel.prototype = {
this._webRtc.off('mute', this._handleMuteBound)
this._webRtc.off('unmute', this._handleUnmuteBound)
this._webRtc.off('channelMessage', this._handleChannelMessageBound)
this._webRtc.off('raisedHand', this._handleRaisedHandBound)
},
get: function(key) {