mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 23:33:45 +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
|
||||
continue
|
||||
}
|
||||
return
|
||||
case <-timer.C:
|
||||
// The handshake timed out.
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user