25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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">>,
attrs = [{<<"xmlns">>, StateData#state.mgmt_xmlns}],
children = []},
StanzaS = xml:element_to_binary(Stanza),
AckReqS = xml:element_to_binary(AckReq),
send_text(StateData, [StanzaS, AckReqS]).
send_element(StateData, Stanza),
send_element(StateData, AckReq).
mgmt_queue_add(StateData, El) ->
NewNum = case StateData#state.mgmt_stanzas_out of