device: format a few things

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-11-06 18:01:09 +01:00
parent 3b490f30aa
commit 5ca1218a5c
2 changed files with 1 additions and 2 deletions

View file

@ -13,4 +13,4 @@ func (device *Device) DisableSomeRoamingForBrokenMobileSemantics() {
peer.disableRoaming = peer.endpoint != nil peer.disableRoaming = peer.endpoint != nil
} }
device.peers.RUnlock() device.peers.RUnlock()
} }

View file

@ -291,7 +291,6 @@ func (peer *Peer) Stop() {
peer.ZeroAndFlushAll() peer.ZeroAndFlushAll()
} }
func (peer *Peer) SetEndpointFromPacket(endpoint conn.Endpoint) { func (peer *Peer) SetEndpointFromPacket(endpoint conn.Endpoint) {
if peer.disableRoaming { if peer.disableRoaming {
return return