HotspotManager: set channel to null after closing it consistently

This commit is contained in:
Sebastian Kürten
2021-08-04 12:35:59 +02:00
parent d411b99030
commit 60aaa4a7c1

View File

@@ -249,6 +249,7 @@ class HotspotManager {
LOG.info("retrying to start WifiP2p framework");
if (attempt < MAX_FRAMEWORK_ATTEMPTS) {
if (SDK_INT >= 27 && channel != null) channel.close();
channel = null;
handler.postDelayed(() -> startWifiP2pFramework(attempt + 1),
RETRY_DELAY_MILLIS);
} else {