Merge branch 'wifi-aware' into wifi-aware-skip-bluetooth

This commit is contained in:
callebtc 2026-01-04 02:01:53 +07:00 committed by GitHub
commit 99ba2b58c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,9 +72,8 @@ class WifiAwareConnectionTracker(
*/
override fun stop() {
super.stop()
peerSockets.keys.toList().forEach { disconnect(it) }
serverSockets.keys.toList().forEach { disconnect(it) }
// (disconnect handles map removal)
val allIds = peerSockets.keys + serverSockets.keys + networkCallbacks.keys
allIds.toSet().forEach { disconnect(it) }
}
fun getDebugInfo(): String {