зеркало из https://github.com/nextcloud/talk-ios.git
Fix cleanCurrentPeerConnections method.
Remove delegate for peer connections that are going to be closed. Notifify call view about deleted peer connections with the delegate function. Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
1883722885
Коммит
8ab7cf9ba1
|
@ -256,6 +256,8 @@ static NSString * const kNCVideoTrackKind = @"video";
|
||||||
- (void)cleanCurrentPeerConnections
|
- (void)cleanCurrentPeerConnections
|
||||||
{
|
{
|
||||||
for (NCPeerConnection *peerConnectionWrapper in [_connectionsDict allValues]) {
|
for (NCPeerConnection *peerConnectionWrapper in [_connectionsDict allValues]) {
|
||||||
|
[self.delegate callController:self peerLeft:peerConnectionWrapper];
|
||||||
|
peerConnectionWrapper.delegate = nil;
|
||||||
[peerConnectionWrapper close];
|
[peerConnectionWrapper close];
|
||||||
}
|
}
|
||||||
for (NSTimer *pendingOfferTimer in [_pendingOffersDict allValues]) {
|
for (NSTimer *pendingOfferTimer in [_pendingOffersDict allValues]) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче