25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +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) wait_before_reconnect(StateData)
end end
end; end;
open_socket(stop, StateData) -> open_socket(closed, StateData) ->
?INFO_MSG("s2s connection: ~s -> ~s (stopped in open socket)", ?INFO_MSG("s2s connection: ~s -> ~s (stopped in open socket)",
[StateData#state.myname, StateData#state.server]), [StateData#state.myname, StateData#state.server]),
{stop, normal, StateData}; {stop, normal, StateData};