Skip to content

Commit

Permalink
Do not run event handlers asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Oct 28, 2023
1 parent 7529a6d commit a785445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spine/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit a785445

Please sign in to comment.