Skip to content

Potential failure when detecting user activity. #2075

@akheffache

Description

@akheffache

On this line,

last_time.elapsed().unwrap_or(Duration::MAX) < self.idle_threshold

I think last_time.elapsed() could return Err if there is a problem with the clock (NTP issues, clock skew). In this case we will return always false. I think we should return TRUE in that case to make sure we are not taking over the machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions