mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 14:49:53 +01:00
HotspotManager: set channel to null after closing it consistently
This commit is contained in:
@@ -249,6 +249,7 @@ class HotspotManager {
|
|||||||
LOG.info("retrying to start WifiP2p framework");
|
LOG.info("retrying to start WifiP2p framework");
|
||||||
if (attempt < MAX_FRAMEWORK_ATTEMPTS) {
|
if (attempt < MAX_FRAMEWORK_ATTEMPTS) {
|
||||||
if (SDK_INT >= 27 && channel != null) channel.close();
|
if (SDK_INT >= 27 && channel != null) channel.close();
|
||||||
|
channel = null;
|
||||||
handler.postDelayed(() -> startWifiP2pFramework(attempt + 1),
|
handler.postDelayed(() -> startWifiP2pFramework(attempt + 1),
|
||||||
RETRY_DELAY_MILLIS);
|
RETRY_DELAY_MILLIS);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user