mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-28 04:26:26 -08:00
ipn/ipnlocal: fix missing defer in testExtension.Shutdown
Updates #cleanup Signed-off-by: Nick Khyl <[email protected]>
This commit is contained in:
1 parent
f1c7b463cd
commit
ea4018b757
1 file changed
+1
-1
@@ -1230,7 +1230,7 @@ func (e *testExtension) InitCalled() bool {
|
||||
func (e *testExtension) Shutdown() (err error) {
|
||||
e.t.Helper()
|
||||
e.mu.Lock()
|
||||
e.mu.Unlock()
|
||||
defer e.mu.Unlock()
|
||||
if e.ShutdownHook != nil {
|
||||
err = e.ShutdownHook(e)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user