* src/ejabberd_s2s_out.erl: Bounce packets after unregistering s2s

connection, not before

SVN Revision: 811
This commit is contained in:
Alexey Shchepin
2007-07-11 14:10:28 +00:00
parent b16e3f6d0b
commit 907878081d
2 changed files with 6 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
2007-07-11 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_s2s_out.erl: Bounce packets after unregistering s2s
connection, not before
2007-07-11 Mickael Remond <mickael.remond@process-one.net>
* src/mod_echo.erl: mod_echo does not reply to other
+1 -2
View File
@@ -3,7 +3,6 @@
%%% Author : Alexey Shchepin <alexey@sevcom.net>
%%% Purpose :
%%% Created : 6 Dec 2002 by Alexey Shchepin <alexey@sevcom.net>
%%% Id : $Id$
%%%----------------------------------------------------------------------
-module(ejabberd_s2s_out).
@@ -653,7 +652,6 @@ handle_info(_, StateName, StateData) ->
%%----------------------------------------------------------------------
terminate(Reason, StateName, StateData) ->
?INFO_MSG("terminated: ~p", [Reason]),
bounce_queue(StateData#state.queue, ?ERR_REMOTE_SERVER_NOT_FOUND),
case StateData#state.new of
false ->
ok;
@@ -661,6 +659,7 @@ terminate(Reason, StateName, StateData) ->
ejabberd_s2s:remove_connection({StateData#state.myname,
StateData#state.server})
end,
bounce_queue(StateData#state.queue, ?ERR_REMOTE_SERVER_NOT_FOUND),
case StateData#state.socket of
undefined ->
ok;