diff --git a/golibs/bait/bait.go b/golibs/bait/bait.go index 0ff9444..357a4d1 100644 --- a/golibs/bait/bait.go +++ b/golibs/bait/bait.go @@ -15,7 +15,8 @@ type Bait struct{ func New() Bait { emitter := emission.NewEmitter() - emitter.RecoverWith(func(_, _ interface{}, err error) { + emitter.RecoverWith(func(hookname, hookfunc interface{}, err error) { + emitter.Off(hookname, hookfunc) fmt.Println(err) }) return Bait{