From 606c207e21dd3eca63b976407e11405b6bf1bdba Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 17 Dec 2010 17:26:20 +0900 Subject: [PATCH] Make sure 'closed' event is correctly processed on every state --- src/ejabberd_s2s_out.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_s2s_out.erl b/src/ejabberd_s2s_out.erl index f59e8ec8e..b07c9dcd3 100644 --- a/src/ejabberd_s2s_out.erl +++ b/src/ejabberd_s2s_out.erl @@ -248,7 +248,7 @@ open_socket(init, StateData) -> wait_before_reconnect(StateData) end end; -open_socket(stop, StateData) -> +open_socket(closed, StateData) -> ?INFO_MSG("s2s connection: ~s -> ~s (stopped in open socket)", [StateData#state.myname, StateData#state.server]), {stop, normal, StateData};