Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
c.Close()
的前置检查和转换,改为 type assertionc.(C.Conn)
statistic.Tracker
类型没有Close()
方法时无法正常工作,最终原代码的关闭连接行为失效经测试,编译后在 Andorid 12 上正常运行,已按原代码预期行为生效,切换节点后立刻打断连接实时生效新节点
编译成品 app 测试:
https://dl.0z.gs/d/temp/cmfa-alpha-2.10.2_fixBreakConnect.zip?sign=hWitMWFflZoABM0LC5oZJEs25GogGa9LSBgqVUXNyi0=:0