Use cleanCurrentPeerConnections in leaveCall.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2020-11-16 15:48:40 +01:00
Родитель 30a23c625c
Коммит e50be8db0f
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -200,9 +200,7 @@ static NSString * const kNCVideoTrackKind = @"video";
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
_externalSignalingController.delegate = nil; _externalSignalingController.delegate = nil;
for (NCPeerConnection *peerConnectionWrapper in [_connectionsDict allValues]) { [self cleanCurrentPeerConnections];
[peerConnectionWrapper close];
}
[_localStream removeAudioTrack:_localAudioTrack]; [_localStream removeAudioTrack:_localAudioTrack];
[_localStream removeVideoTrack:_localVideoTrack]; [_localStream removeVideoTrack:_localVideoTrack];