mirror of
https://github.com/valitydev/dmt-client.git
synced 2024-11-06 01:15:22 +00:00
fix: Fix cleanup_users for dead processes
This commit is contained in:
parent
c6f09fd640
commit
ff808b00a1
@ -524,7 +524,7 @@ cleanup_users(Snaps) ->
|
||||
|
||||
ets:foldl(
|
||||
fun(Rec = #user{vsn = Version, pid = Pid, requested_at = '_'}, _) ->
|
||||
case sets:is_element(Version, VersionMap) andalso erlang:is_alive(Pid) of
|
||||
case sets:is_element(Version, VersionMap) andalso erlang:is_process_alive(Pid) of
|
||||
true -> ok;
|
||||
false -> ets:delete_object(?USERS_TABLE, Rec)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user