aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/stub/stub.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-04 19:39:12 +0900
committerOphestra <cat@gensokyo.uk>2025-09-04 19:39:12 +0900
commit3920acf8c215a30bc3b48408cf46a3951ec04555 (patch)
tree82ac0cb4af518165114ee17b6c7796999ac40136 /container/stub/stub.go
parent19630a95932451b4df3f6fd70e88aef9303235e9 (diff)
container/stub: remove function call in handleExit
This gets inlined and does not cause problems usually but turns out -coverpkg uninlines it and breaks the recovery. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/stub/stub.go')
-rw-r--r--container/stub/stub.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/stub/stub.go b/container/stub/stub.go
index e0ade3b0..a5368920 100644
--- a/container/stub/stub.go
+++ b/container/stub/stub.go
@@ -68,7 +68,7 @@ func (s *Stub[K]) New(f func(k K)) {
s.Helper()
defer s.wg.Done()
- defer handleExit(s.TB, false)
+ defer handleExitNew(s.TB)
f(s.makeK(ds))
}()
}