mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-27 16:55:48 -04:00
Retake multicast lock on WiFi carrier change
This commit is contained in:
parent
ee3ed7a017
commit
dd97dba7df
2 changed files with 15 additions and 6 deletions
|
@ -1282,6 +1282,11 @@ class SidebandCore():
|
|||
|
||||
if hasattr(self, "interface_local") and self.interface_local != None:
|
||||
have_peers = len(self.interface_local.peers) > 0
|
||||
if self.interface_local.carrier_changed:
|
||||
RNS.log("AutoInterface carrier change detected, retaking wake locks", RNS.LOG_DEBUG)
|
||||
self.owner_service.take_locks(force_multicast=True)
|
||||
self.interface_local.carrier_changed = False
|
||||
|
||||
if hasattr(self.interface_local, "had_peers"):
|
||||
if not self.interface_local.had_peers and have_peers:
|
||||
RNS.log("Peers became reachable on the interface "+str(self.interface_local), RNS.LOG_DEBUG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue