|
@@ -75,9 +75,9 @@
|
|
|
tryRelinkNum ++;
|
|
|
if(tryRelinkNum == 2){
|
|
|
_didReportWebRtcFailType = YES;
|
|
|
-
|
|
|
+ KWeakSelf
|
|
|
[[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
|
|
|
- [self reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
|
|
|
+ [weakSelf reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
|
|
|
}];
|
|
|
|
|
|
//检测盒子心跳
|
|
@@ -977,11 +977,11 @@
|
|
|
case RTCIceConnectionStateFailed:
|
|
|
case RTCIceConnectionStateDisconnected:
|
|
|
case RTCIceConnectionStateClosed:{
|
|
|
- if(!_didReportWebRtcFailType){//还没上报过通道链接情况
|
|
|
+ if(!_didReportWebRtcFailType && state != RTCIceConnectionStateDisconnected){//还没上报过通道链接情况
|
|
|
_didReportWebRtcFailType = YES;
|
|
|
-
|
|
|
+ KWeakSelf
|
|
|
[[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
|
|
|
- [self reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
|
|
|
+ [weakSelf reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
|
|
|
}];
|
|
|
}
|
|
|
//链接关闭
|