25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Try not to use c2s:send_text, it causes problem with websocket

This commit is contained in:
Paweł Chmielowski 2015-02-25 10:46:03 +01:00
parent b42b171613
commit 8e33f31f50

View File

@ -2848,9 +2848,8 @@ send_stanza_and_ack_req(StateData, Stanza) ->
AckReq = #xmlel{name = <<"r">>, AckReq = #xmlel{name = <<"r">>,
attrs = [{<<"xmlns">>, StateData#state.mgmt_xmlns}], attrs = [{<<"xmlns">>, StateData#state.mgmt_xmlns}],
children = []}, children = []},
StanzaS = xml:element_to_binary(Stanza), send_element(StateData, Stanza),
AckReqS = xml:element_to_binary(AckReq), send_element(StateData, AckReq).
send_text(StateData, [StanzaS, AckReqS]).
mgmt_queue_add(StateData, El) -> mgmt_queue_add(StateData, El) ->
NewNum = case StateData#state.mgmt_stanzas_out of NewNum = case StateData#state.mgmt_stanzas_out of