egs_user_model: Authenticated users shouldn't be cleaned up.

This commit is contained in:
Loïc Hoguin 2010-07-20 01:38:00 +02:00
parent f86aeb8f17
commit 04265d71dc

View File

@ -126,6 +126,7 @@ handle_cast({delete, ID}, State) ->
handle_cast(cleanup, State) ->
Timeout = calendar:datetime_to_gregorian_seconds(calendar:universal_time()) - 300,
List = do(qlc:q([X#?TABLE.id || X <- mnesia:table(?TABLE),
X#?TABLE.state /= authenticated,
X#?TABLE.state /= online,
X#?TABLE.time < Timeout
])),