Skip to content

Commit

Permalink
correctly store unregister requests
Browse files Browse the repository at this point in the history
  • Loading branch information
om26er committed Jul 4, 2024
1 parent 1c76cc0 commit 818305f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (w *Session) SendMessage(msg messages.Message) ([]byte, error) {
return data, nil
case messages.MessageTypeUnRegister:
unregister := msg.(*messages.UnRegister)
w.unregisterRequests.Store(unregister.RequestID(), unregister.RequestID())
w.unregisterRequests.Store(unregister.RequestID(), unregister.RegistrationID())

return data, nil
case messages.MessageTypePublish:
Expand Down

0 comments on commit 818305f

Please sign in to comment.