|
|
@ -71,6 +71,7 @@ public final class SessionCall: CurrentCallProtocol, WebRTCSessionDelegate {
|
|
|
|
var connectingDate: Date? {
|
|
|
|
var connectingDate: Date? {
|
|
|
|
didSet {
|
|
|
|
didSet {
|
|
|
|
stateDidChange?()
|
|
|
|
stateDidChange?()
|
|
|
|
|
|
|
|
resetTimeoutTimerIfNeeded()
|
|
|
|
hasStartedConnectingDidChange?()
|
|
|
|
hasStartedConnectingDidChange?()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -421,6 +422,11 @@ public final class SessionCall: CurrentCallProtocol, WebRTCSessionDelegate {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public func resetTimeoutTimerIfNeeded() {
|
|
|
|
|
|
|
|
if self.timeOutTimer == nil { return }
|
|
|
|
|
|
|
|
setupTimeoutTimer()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public func invalidateTimeoutTimer() {
|
|
|
|
public func invalidateTimeoutTimer() {
|
|
|
|
timeOutTimer?.invalidate()
|
|
|
|
timeOutTimer?.invalidate()
|
|
|
|
timeOutTimer = nil
|
|
|
|
timeOutTimer = nil
|
|
|
|