aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2010-12-17 17:26:20 +0900
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2010-12-17 17:26:20 +0900
commit606c207e21dd3eca63b976407e11405b6bf1bdba (patch)
tree8bd13ba1b991ecebafac11547f8d94a80e3b81d6
parentIgnore OS X libraries. (diff)
Make sure 'closed' event is correctly processed on every state
-rw-r--r--src/ejabberd_s2s_out.erl2
1 files changed, 1 insertions, 1 deletions
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};