Skip to content

v2.3.5 - Sleep/Wake Auto-Pause Fix

Choose a tag to compare

@nadun82 nadun82 released this 24 Feb 03:58
· 8 commits to main since this release

Changes

Bug Fix

  • Fixed auto-pause not reaching server during sleep/hibernate — The AutoPause("sleep") API call was fire-and-forget and could fail silently if the network shut down before the call completed. This caused the server to keep the session as "Working" through the entire sleep period, inflating TotalDurationSeconds and preventing a new session from being created the next day.

What's New

  • Resume handler — After system wake, waits for network reconnection then verifies the pause was recorded on the server. If not, re-sends the pause.
  • Unlock handler — Same verification after screen unlock (common sleep/wake path).
  • Sleep recovery — If the Suspend handler didn't fire at all, the Resume handler detects the session is still Active and forces an auto-pause.

Files Changed

  • App.xaml.cs — Added PowerModes.Resume and SessionUnlock handlers
  • Services/SessionService.cs — Added EnsurePausedOnServerAsync() method