egs_user_model: Authenticated users shouldn't be cleaned up.
This commit is contained in:
parent
f86aeb8f17
commit
04265d71dc
@ -126,6 +126,7 @@ handle_cast({delete, ID}, State) ->
|
|||||||
handle_cast(cleanup, State) ->
|
handle_cast(cleanup, State) ->
|
||||||
Timeout = calendar:datetime_to_gregorian_seconds(calendar:universal_time()) - 300,
|
Timeout = calendar:datetime_to_gregorian_seconds(calendar:universal_time()) - 300,
|
||||||
List = do(qlc:q([X#?TABLE.id || X <- mnesia:table(?TABLE),
|
List = do(qlc:q([X#?TABLE.id || X <- mnesia:table(?TABLE),
|
||||||
|
X#?TABLE.state /= authenticated,
|
||||||
X#?TABLE.state /= online,
|
X#?TABLE.state /= online,
|
||||||
X#?TABLE.time < Timeout
|
X#?TABLE.time < Timeout
|
||||||
])),
|
])),
|
||||||
|
Loading…
Reference in New Issue
Block a user