-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve resource management and fix timing issues
Overhaul key subsystems to be more robust around resource handling and timing-sensitive operations: Gateway/Tokens: - Use UNIX epoch instead of current time for expired token state - Fix inverted timestamp comparisons in expiration checks - Add debug logging for token refresh operations Player: - Add is_started() method to track device state - Prevent ALSA from acquiring device until playback starts - Improve cleanup ordering in stop() - Add comprehensive docs for device lifecycle - Guard player task with device state check Remote Control: - Fix race condition in controller connection handshake - Add timeout for user token refresh operations - Improve session ID handling - Order connection setup operations correctly - Better error documentation
- Loading branch information
1 parent
c00aece
commit dd9dd13
Showing
6 changed files
with
119 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters