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

* src/ejabberd_c2s.erl: Returned stream restarting

SVN Revision: 116
This commit is contained in:
Alexey Shchepin 2003-06-20 07:16:31 +00:00
parent 1a8ed857dc
commit 26fbd7f521
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-06-20 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_c2s.erl: Returned stream restarting
2003-06-10 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_c2s.erl: Removed stream restarting

View File

@ -258,13 +258,13 @@ wait_for_sasl_auth({xmlstreamelement, El}, StateData) ->
Mech,
ClientIn) of
{ok, Props} ->
%StateData#state.receiver ! reset_stream,
StateData#state.receiver ! reset_stream,
send_element(StateData,
{xmlelement, "success",
[{"xmlns", ?NS_SASL}], []}),
{U, _, R} = jlib:string_to_jid(
xml:get_attr_s(authzid, Props)),
{next_state, wait_for_session,
{next_state, wait_for_stream,
StateData#state{authentificated = true,
user = U,
resource = R
@ -321,13 +321,13 @@ wait_for_sasl_response({xmlstreamelement, El}, StateData) ->
case cyrsasl:server_step(StateData#state.sasl_state,
ClientIn) of
{ok, Props} ->
%StateData#state.receiver ! reset_stream,
StateData#state.receiver ! reset_stream,
send_element(StateData,
{xmlelement, "success",
[{"xmlns", ?NS_SASL}], []}),
{U, _, R} = jlib:string_to_jid(
xml:get_attr_s(authzid, Props)),
{next_state, wait_for_session,
{next_state, wait_for_stream,
StateData#state{authentificated = true,
user = U,
resource = R