Skip to content

Commit

Permalink
Merge pull request #30 from Luc-netease/master
Browse files Browse the repository at this point in the history
修复组件通话销毁时停止计时器。
  • Loading branch information
Luc-netease authored Sep 20, 2023
2 parents 64ccfe1 + 816e0a4 commit 49577e2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.netease.yunxin.kit.alog.ALog
import com.netease.yunxin.kit.alog.ParameterMap
import com.netease.yunxin.kit.call.NEResultObserver
import com.netease.yunxin.kit.call.p2p.NECallEngine
import com.netease.yunxin.kit.call.p2p.model.NECallEndInfo
import com.netease.yunxin.kit.call.p2p.model.NECallEngineDelegateAbs
import com.netease.yunxin.kit.call.p2p.model.NECallInfo
import com.netease.yunxin.kit.call.p2p.model.NECallTypeChangeInfo
Expand Down Expand Up @@ -85,6 +86,12 @@ object CallUIOperationsMgr {
}
}
}

override fun onCallEnd(info: NECallEndInfo?) {
this@CallUIOperationsMgr.timer?.cancel()
this@CallUIOperationsMgr.timer = null
this@CallUIOperationsMgr.timeTickConfig = null
}
}

private val neRtcCallback = object : NERtcCallbackExTemp() {
Expand Down

0 comments on commit 49577e2

Please sign in to comment.