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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user