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:
parent
d9c01e8ed9
commit
606c207e21
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user