mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Handle Tigase's unexpected version=1.0 when ejabberd doesn't announce it (EJAB-1379)
This commit is contained in:
parent
d8f339bceb
commit
16a97ab903
@ -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, _} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user