aboutsummaryrefslogtreecommitdiff
path: root/device/mobilequirks.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/mobilequirks.go')
-rw-r--r--device/mobilequirks.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/device/mobilequirks.go b/device/mobilequirks.go
index f27d9d7..680f5c7 100644
--- a/device/mobilequirks.go
+++ b/device/mobilequirks.go
@@ -5,7 +5,10 @@
package device
+// DisableSomeRoamingForBrokenMobileSemantics should ideally be called before peers are created,
+// though it will try to deal with it, and race maybe, if called after.
func (device *Device) DisableSomeRoamingForBrokenMobileSemantics() {
+ device.net.brokenRoaming = true
device.peers.RLock()
for _, peer := range device.peers.keyMap {
peer.Lock()