mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-20 15:36:30 +00:00
Send retain:remove before unsubscribing
This commit is contained in:
parent
c8a97d0453
commit
3cc49ef972
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue