diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-03-06 16:18:03 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-03-06 16:18:03 +0300 |
commit | d9bf5a68657305e4fe2b31629a5621b8700ac064 (patch) | |
tree | 8b88aea853b14b79d7037a2ea91511b5e250df29 | |
parent | 67fe5d38a7a901335ca1ca814f09ad38afd5367a (diff) |
Don't forget to remove mgmt_force_enqueue flag
-rw-r--r-- | src/mod_stream_mgmt.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_stream_mgmt.erl b/src/mod_stream_mgmt.erl index 6ca5a8b39..0682762b4 100644 --- a/src/mod_stream_mgmt.erl +++ b/src/mod_stream_mgmt.erl @@ -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}. |