Merge pull request #11978 from keynslug/fix/crash-session-terminate

fix(sharesub): anticipate messages w/o redispatch header
This commit is contained in:
Andrew Mayorov 2023-11-20 19:15:23 +07:00 committed by GitHub
commit c2ad6142e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,9 @@ with_redispatch_to(Msg, Group, Topic) ->
is_redispatch_needed(#message{qos = ?QOS_0}) ->
false;
is_redispatch_needed(#message{headers = #{redispatch_to := ?REDISPATCH_TO(_, _)}}) ->
true.
true;
is_redispatch_needed(#message{}) ->
false.
%% @doc Redispatch shared deliveries to other members in the group.
redispatch(Messages0) ->