mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-04 07:00:18 +00:00
Send retain:remove before unsubscribing
This commit is contained in:
@@ -145,8 +145,8 @@ func HandleUpdate(c context.Context, message *stomp.Message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
client.Unsubscribe(sub)
|
|
||||||
client.Send(dest, []byte{}, stomp.WithRetain("remove"))
|
client.Send(dest, []byte{}, stomp.WithRetain("remove"))
|
||||||
|
client.Unsubscribe(sub)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
Reference in New Issue
Block a user