Ensure a stale peerConnectionClient doesn't call any methods on the CallService
Nil delegates when terminating call // FREEBIE
This commit is contained in:
parent
32789bd960
commit
0072ee3033
@ -885,6 +885,7 @@ fileprivate let timeoutSeconds = 60
|
||||
assertOnSignalingQueue()
|
||||
Logger.debug("\(TAG) in \(#function)")
|
||||
|
||||
peerConnectionClient?.delegate = nil
|
||||
peerConnectionClient?.terminate()
|
||||
|
||||
peerConnectionClient = nil
|
||||
|
||||
@ -53,7 +53,7 @@ class PeerConnectionClient: NSObject, RTCPeerConnectionDelegate, RTCDataChannelD
|
||||
}
|
||||
|
||||
// Delegate is notified of key events in the call lifecycle.
|
||||
private weak var delegate: PeerConnectionClientDelegate!
|
||||
public weak var delegate: PeerConnectionClientDelegate!
|
||||
|
||||
// Connection
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user