Skip to content

Commit

Permalink
fix: don't mark user as no longer AFK if the lock screen is not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
amsam0 committed Oct 25, 2024
1 parent 0c35fab commit b095e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw_watcher_afk/afk.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def heartbeat_loop(self):
logger.debug(f"Lock screen shown: {showing_lock_screen}")

# If no longer AFK
if afk and (seconds_since_input < self.settings.timeout or not showing_lock_screen):
if afk and seconds_since_input < self.settings.timeout:
logger.info("No longer AFK")
self.ping(afk, timestamp=last_input)
afk = False
Expand Down

0 comments on commit b095e65

Please sign in to comment.