25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Make sure 'closed' event is correctly processed on every state

This commit is contained in:
Evgeniy Khramtsov 2010-12-17 17:26:20 +09:00
parent d9c01e8ed9
commit 606c207e21

View File

@ -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};