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

Fix potential case-clause crash

This commit is contained in:
Evgeniy Khramtsov 2011-09-05 17:27:15 +10:00
parent 826fab9999
commit 0c1796ea40

View File

@ -1488,7 +1488,7 @@ remove_online_user(JID, StateData, Reason) ->
?DICT:erase(Nick, StateData#state.nicks);
{ok, U} ->
?DICT:store(Nick, U -- [LJID], StateData#state.nicks);
false ->
error ->
StateData#state.nicks
end,
StateData#state{users = Users, nicks = Nicks}.