mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Don't forget to remove mgmt_force_enqueue flag
This commit is contained in:
parent
67fe5d38a7
commit
d9bf5a6865
@ -733,7 +733,9 @@ bounce_message_queue() ->
|
||||
need_to_enqueue(State, Pkt) when ?is_stanza(Pkt) ->
|
||||
{not xmpp:get_meta(Pkt, mgmt_is_resent, false), State};
|
||||
need_to_enqueue(#{mgmt_force_enqueue := true} = State, #xmlel{}) ->
|
||||
{true, maps:remove(mgmt_is_resent, State)};
|
||||
State1 = maps:remove(mgmt_force_enqueue, State),
|
||||
State2 = maps:remove(mgmt_is_resent, State1),
|
||||
{true, State2};
|
||||
need_to_enqueue(State, _) ->
|
||||
{false, State}.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user