mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 16:23:44 +00:00
wgengine/magicsock: remove premature return in handshakeServerEndpoint (#16351)
Any return underneath this select case must belong to a type switch case. Updates tailscale/corp#27502 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
parent
0198255266
commit
9288efe592
@ -691,7 +691,6 @@ func (r *relayManager) handshakeServerEndpoint(work *relayHandshakeWork) {
|
|||||||
// unexpected message type, silently discard
|
// unexpected message type, silently discard
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return
|
|
||||||
case <-timer.C:
|
case <-timer.C:
|
||||||
// The handshake timed out.
|
// The handshake timed out.
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user