summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorOtto <otto@codeberg.org>2024-08-16 16:17:15 +0200
committerOtto <otto@codeberg.org>2024-08-16 16:17:15 +0200
commitda7f3ac6f55e667ccdb9553ec14ac3b00174637d (patch)
tree01c6d34c9f22aab2332f6432d0b8a86bbc37ea06 /routers
parentMerge pull request 'Enhancing Gitea OAuth2 Provider with Granular Scopes for ... (diff)
parent[BUG] Make logout event non-blocking (diff)
downloadforgejo-da7f3ac6f55e667ccdb9553ec14ac3b00174637d.tar.xz
forgejo-da7f3ac6f55e667ccdb9553ec14ac3b00174637d.zip
Merge pull request '[BUG] Make logout event non-blocking' (#4938) from gusted/forgejo-non-blocking-logout into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4938 Reviewed-by: Otto <otto@codeberg.org>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/auth/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/auth/auth.go b/routers/web/auth/auth.go
index 3181800211..3f1ed54bda 100644
--- a/routers/web/auth/auth.go
+++ b/routers/web/auth/auth.go
@@ -408,7 +408,7 @@ func HandleSignOut(ctx *context.Context) {
// SignOut sign out from login status
func SignOut(ctx *context.Context) {
if ctx.Doer != nil {
- eventsource.GetManager().SendMessageBlocking(ctx.Doer.ID, &eventsource.Event{
+ eventsource.GetManager().SendMessage(ctx.Doer.ID, &eventsource.Event{
Name: "logout",
Data: ctx.Session.ID(),
})