Increased AutoInterface peering timeout on Android
This commit is contained in:
parent
0abb3bd4c3
commit
8e4a1e3ffa
|
@ -105,6 +105,11 @@ class AutoInterface(Interface):
|
||||||
self.peering_timeout = AutoInterface.PEERING_TIMEOUT
|
self.peering_timeout = AutoInterface.PEERING_TIMEOUT
|
||||||
self.multicast_echo_timeout = AutoInterface.PEERING_TIMEOUT/2
|
self.multicast_echo_timeout = AutoInterface.PEERING_TIMEOUT/2
|
||||||
|
|
||||||
|
# Increase peering timeout on Android, due to potential
|
||||||
|
# low-power modes implemented on many chipsets.
|
||||||
|
if RNS.vendor.platformutils.is_android():
|
||||||
|
self.peering_timeout *= 3
|
||||||
|
|
||||||
if allowed_interfaces == None:
|
if allowed_interfaces == None:
|
||||||
self.allowed_interfaces = []
|
self.allowed_interfaces = []
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue