ipn/ipnlocal: fix missing defer in testExtension.Shutdown

Updates #cleanup

Signed-off-by: Nick Khyl <nickk@tailscale.com>
main
Nick Khyl 9 months ago committed by Nick Khyl
parent f1c7b463cd
commit ea4018b757
  1. 2
      ipn/ipnlocal/extension_host_test.go

@ -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)
}

Loading…
Cancel
Save