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

Handle Tigase's unexpected version=1.0 when ejabberd doesn't announce it (EJAB-1379)

This commit is contained in:
Badlop 2011-01-11 16:22:22 +01:00
parent d8f339bceb
commit 16a97ab903

View File

@ -333,6 +333,10 @@ wait_for_stream({xmlstreamstart, Opening}, StateData) ->
{?NS_JABBER_SERVER, true, true} when {?NS_JABBER_SERVER, true, true} when
StateData#state.use_v10 -> StateData#state.use_v10 ->
{next_state, wait_for_features, StateData, ?FSMTIMEOUT}; {next_state, wait_for_features, StateData, ?FSMTIMEOUT};
%% Clause added to handle Tigase's workaround for an old ejabberd bug:
{?NS_JABBER_SERVER, true, true} when
not StateData#state.use_v10 ->
send_db_request(StateData);
{?NS_JABBER_SERVER, false, true} when StateData#state.use_v10 -> {?NS_JABBER_SERVER, false, true} when StateData#state.use_v10 ->
{next_state, wait_for_features, StateData#state{db_enabled = false}, ?FSMTIMEOUT}; {next_state, wait_for_features, StateData#state{db_enabled = false}, ?FSMTIMEOUT};
{NSProvided, DB, _} -> {NSProvided, DB, _} ->