25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

* src/ejabberd_s2s.erl: Don't start s2s process for existing

connection in case of race condition

SVN Revision: 745
This commit is contained in:
Alexey Shchepin 2007-03-17 22:17:03 +00:00
parent c917642b7f
commit 829f30e63b
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-03-18 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_s2s.erl: Don't start s2s process for existing
connection in case of race condition
2007-03-13 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_service.erl: Added shaper_rule option, changed
@ -73,8 +78,7 @@
* src/ejabberd_auth_ldap.erl: prevent anonymous bind on LDAP
servers as ejabberd is providing other anonymous authentication
mechanism
(EJAB-190).
mechanism (EJAB-190).
* src/cyrsasl_plain.erl: bad-auth error code replaced by
not-authorized (EJAB-187).

View File

@ -244,7 +244,12 @@ find_connection(From, To) ->
end
end,
TRes = mnesia:transaction(F),
ejabberd_s2s_out:start_connection(Pid),
case TRes of
{atomic, Pid} ->
ejabberd_s2s_out:start_connection(Pid);
_ ->
ok
end,
TRes
end;
[El] ->