wgengine/relaymanager: don't start runLoop() on init() (#16231)

This is simply for consistency with relayManagerInputEvent(), which
should be the sole launcher of runLoop().

Updates tailscale/corp#27502

Signed-off-by: Jordan Whited <jordan@tailscale.com>
pull/16234/head
Jordan Whited 6 months ago committed by GitHub
parent 67b1693c13
commit c343bffa72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -206,7 +206,7 @@ func (r *relayManager) init() {
r.newServerEndpointCh = make(chan newRelayServerEndpointEvent)
r.rxHandshakeDiscoMsgCh = make(chan relayHandshakeDiscoMsgEvent)
r.runLoopStoppedCh = make(chan struct{}, 1)
go r.runLoop()
r.runLoopStoppedCh <- struct{}{}
})
}

Loading…
Cancel
Save