25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix typo on state reuse

It should help with the crash on #453
This commit is contained in:
Mickaël Rémond 2015-03-03 22:19:51 +01:00
parent d8b048663d
commit f0f8301b5e

View File

@ -697,9 +697,9 @@ terminate(_Reason, _StateName, FullStateData) ->
<<"Server Connect Failed">>}]},
FullStateData}
end,
(FullStateData#state.mod):closed_connection(StateData#state.host,
StateData#state.user,
StateData#state.server),
(StateData#state.mod):closed_connection(StateData#state.host,
StateData#state.user,
StateData#state.server),
bounce_messages(<<"Server Connect Failed">>),
lists:foreach(fun (Chan) ->
Stanza = #xmlel{name = <<"presence">>,