mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
ipn/ipnlocal: fix startIsNoopLocked
It got broken back when FUS was introduced, but we never caught it. Updates tailscale/corp#14471 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
1262df0578
commit
6bc15f3a73
@ -1324,7 +1324,7 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
|
|||||||
// but meanwhile we can make Start cheaper here for such a
|
// but meanwhile we can make Start cheaper here for such a
|
||||||
// case and not restart the world (which takes a few seconds).
|
// case and not restart the world (which takes a few seconds).
|
||||||
// Instead, just send a notify with the state that iOS needs.
|
// Instead, just send a notify with the state that iOS needs.
|
||||||
if b.startIsNoopLocked(opts) && profileID == b.lastProfileID {
|
if b.startIsNoopLocked(opts) && profileID == b.lastProfileID && profileID != "" {
|
||||||
b.logf("Start: already running; sending notify")
|
b.logf("Start: already running; sending notify")
|
||||||
nm := b.netMap
|
nm := b.netMap
|
||||||
state := b.state
|
state := b.state
|
||||||
@ -4011,6 +4011,7 @@ func (b *LocalBackend) setNetMapLocked(nm *netmap.NetworkMap) {
|
|||||||
if login != b.activeLogin {
|
if login != b.activeLogin {
|
||||||
b.logf("active login: %v", login)
|
b.logf("active login: %v", login)
|
||||||
b.activeLogin = login
|
b.activeLogin = login
|
||||||
|
b.lastProfileID = b.pm.CurrentProfile().ID
|
||||||
}
|
}
|
||||||
b.pauseOrResumeControlClientLocked()
|
b.pauseOrResumeControlClientLocked()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user