Skip to content

Commit

Permalink
Merge pull request #38 from xconnio/hotfix
Browse files Browse the repository at this point in the history
Do not delete registration id in session on Invocation
  • Loading branch information
rubyonrails3 authored May 20, 2024
2 parents 8e7491b + f21c6c8 commit c25ecf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wampproto/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def receive_message(msg) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
raise ValueError, error_message unless registrations.delete(registration_id)
when Message::Invocation
error_message = "received INVOCATION for invalid registration_id"
raise ValueError, error_message unless registrations.delete(msg.registration_id)
raise ValueError, error_message unless registrations.include?(msg.registration_id)

invocation_requests[msg.request_id] = msg.request_id
when Message::Published
Expand Down

0 comments on commit c25ecf1

Please sign in to comment.