summaryrefslogtreecommitdiffhomepage
path: root/device/mobilequirks.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/mobilequirks.go')
-rw-r--r--device/mobilequirks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/mobilequirks.go b/device/mobilequirks.go
index a31ce3a..f27d9d7 100644
--- a/device/mobilequirks.go
+++ b/device/mobilequirks.go
@@ -9,8 +9,8 @@ func (device *Device) DisableSomeRoamingForBrokenMobileSemantics() {
device.peers.RLock()
for _, peer := range device.peers.keyMap {
peer.Lock()
- defer peer.Unlock()
peer.disableRoaming = peer.endpoint != nil
+ peer.Unlock()
}
device.peers.RUnlock()
}