24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-04 23:15:31 +02:00

Ignore CDATA ping while not in session_established state

This commit is contained in:
Alexey Shchepin 2011-12-21 09:40:30 +02:00
parent 2ea9e6ed59
commit 39acf823ef

View File

@ -1356,7 +1356,7 @@ handle_event({del_rosteritem, IJID}, StateName, StateData) ->
NewStateData = roster_change(IJID, none, StateData),
fsm_next_state(StateName, NewStateData);
handle_event({xmlstreamcdata, _}, StateName, StateData) ->
handle_event({xmlstreamcdata, _}, session_established = StateName, StateData) ->
?DEBUG("cdata ping", []),
NSD1 = change_reception(StateData, true),
NSD2 = start_keepalive_timer(NSD1),