mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
ipnlocal: fix deadlock when calling Shutdown() from Start().
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
parent
ecdba913d0
commit
ac9cd48c80
@ -682,7 +682,9 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
|
|||||||
// into sync with the minimal changes. But that's not how it
|
// into sync with the minimal changes. But that's not how it
|
||||||
// is right now, which is a sign that the code is still too
|
// is right now, which is a sign that the code is still too
|
||||||
// complicated.
|
// complicated.
|
||||||
|
b.mu.Unlock()
|
||||||
b.cc.Shutdown()
|
b.cc.Shutdown()
|
||||||
|
b.mu.Lock()
|
||||||
}
|
}
|
||||||
httpTestClient := b.httpTestClient
|
httpTestClient := b.httpTestClient
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user