Send retain:remove before unsubscribing

This commit is contained in:
Jacob McCann 2017-01-10 13:01:46 -06:00
parent c8a97d0453
commit 3cc49ef972

View file

@ -145,8 +145,8 @@ func HandleUpdate(c context.Context, message *stomp.Message) {
}
defer func() {
client.Unsubscribe(sub)
client.Send(dest, []byte{}, stomp.WithRetain("remove"))
client.Unsubscribe(sub)
}()
select {