]> source.dussan.org Git - gitea.git/commit
Handle panics that percolate up to the graceful module (#11291)
authorzeripath <art27@cantab.net>
Fri, 15 May 2020 00:06:00 +0000 (01:06 +0100)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 00:06:00 +0000 (20:06 -0400)
commit4a04740dafb1da047300dfbb9da596fee16af948
tree3c2431aba9ca6802787f4b33e5c28bae9518399b
parent4159866528e3ceb06d0b7ef1bdb3dc80ce6d0fc4
Handle panics that percolate up to the graceful module (#11291)

* Handle panics in graceful goroutines

Adds a some deferred functions to handle panics in graceful goroutines

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Handle panic in webhook.Deliver

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Handle panic in mirror.syncMirror

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
modules/graceful/manager.go
modules/webhook/deliver.go
services/mirror/mirror.go