summaryrefslogtreecommitdiff
path: root/src/xmpp_stream_in.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2017-02-19 22:43:10 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2017-02-19 22:43:10 +0100
commit7c159e38815a83ab677ace8e1a5b55cf8ff2ad37 (patch)
treef4e506cccd00c8523e70a16894edd167d127a784 /src/xmpp_stream_in.erl
parentGet rid of non-breaking space (diff)
Let ejabberd_c2s handle <session/> IQ
This fixes the counting of incoming stanzas for stream management.
Diffstat (limited to 'src/xmpp_stream_in.erl')
-rw-r--r--src/xmpp_stream_in.erl13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/xmpp_stream_in.erl b/src/xmpp_stream_in.erl
index 7d9b0dc8..501db04e 100644
--- a/src/xmpp_stream_in.erl
+++ b/src/xmpp_stream_in.erl
@@ -577,20 +577,9 @@ process_unauthenticated_packet(Pkt, #{mod := Mod} = State) ->
end.
-spec process_authenticated_packet(xmpp_element(), state()) -> state().
-process_authenticated_packet(Pkt, #{xmlns := NS, mod := Mod} = State) ->
+process_authenticated_packet(Pkt, #{mod := Mod} = State) ->
Pkt1 = set_lang(Pkt, State),
case set_from_to(Pkt1, State) of
- {ok, #iq{type = set, sub_els = [_]} = Pkt2} when NS == ?NS_CLIENT ->
- case xmpp:get_subtag(Pkt2, #xmpp_session{}) of
- #xmpp_session{} ->
- send_pkt(State, xmpp:make_iq_result(Pkt2));
- _ ->
- try Mod:handle_authenticated_packet(Pkt2, State)
- catch _:undef ->
- Err = xmpp:err_service_unavailable(),
- send_error(State, Pkt, Err)
- end
- end;
{ok, Pkt2} ->
try Mod:handle_authenticated_packet(Pkt2, State)
catch _:undef ->