Skip to content

Commit

Permalink
bugfix: wg wait block exit when shutdown w/out error (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsl422 authored and evalphobia committed Feb 4, 2019
1 parent 4034fb1 commit ce87e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ func (hook *SentryHook) Fire(entry *logrus.Entry) error {
for _, handlerFn := range hook.errorHandlers {
handlerFn(entry, err)
}
hook.wg.Done()
}
hook.wg.Done()
}()
return nil
case hook.Timeout == 0:
Expand Down

0 comments on commit ce87e9f

Please sign in to comment.