2
2
spegling av https://github.com/Hilbis/Hilbish synced 2025-07-18 16:52:02 +00:00

fix: call recoverer for go listeners

This commit is contained in:
TorchedSammy 2022-08-01 15:13:23 -04:00
förälder 1a8c576e55
incheckning b13062316a
Signerad av: sammyette
GPG-nyckel ID: 904FC49417B44DCD

Visa fil

@ -41,6 +41,12 @@ func (b *Bait) Emit(event string, args ...interface{}) {
if handles != nil {
for _, handle := range handles {
defer func() {
if err := recover(); err != nil {
b.callRecoverer(event, handle, err)
}
}()
handle(args...)
}
}