From a785445166cb39582d7655d7c9060672278a67b6 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Sat, 28 Oct 2023 13:11:19 +0200 Subject: [PATCH] Do not run event handlers asynchronously --- spine/events.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spine/events.go b/spine/events.go index ec1bf870..7e15ec42 100644 --- a/spine/events.go +++ b/spine/events.go @@ -138,7 +138,9 @@ func (r *events) Publish(payload EventPayload) { continue } - go item.Handler.HandleEvent(payload) + // do not run this asynchronously, to make sure all required + // and expected actions are taken + item.Handler.HandleEvent(payload) } } }