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:
parent
826fab9999
commit
0c1796ea40
@ -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}.
|
||||
|
Loading…
Reference in New Issue
Block a user