+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
%%% Author : Alexey Shchepin <alexey@sevcom.net>
%%% Purpose :
%%% Created : 6 Dec 2002 by Alexey Shchepin <alexey@sevcom.net>
-%%% Id : $Id$
%%%----------------------------------------------------------------------
-module(ejabberd_s2s_out).
%%----------------------------------------------------------------------
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;
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;