Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait when trying to play a webstream while connecting to wifi #284

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

SZenglein
Copy link
Contributor

The previous code had some issues. First of all, with DONT_ACCEPT_SAME_RFID_TWICE it would not work at all. But without a change, not even that works correctly (due to gTriedToConnectToHost never being set).

IMHO the code is simplified a lot. The whole control flow can be simplified if we just wait until a connection try hast completed.

The behavior will be slightly different. Most importantly, loading a webstream as the last played rfid now works consistently. Further, the error handling of playing a webstream while disconnected is shifted to the audio library and is handled like any other error.

The previous code had some issues. First of all, with
DONT_ACCEPT_SAME_RFID_TWICE it would not work at all. But without a
change, not even that works correctly (due to gTriedToConnectToHost
never being set).

IMHO the code is simplified a lot. The whole control flow can be
simplified if we just wait until a connection try hast completed.
@SZenglein SZenglein force-pushed the fix_handle_webstream_on_startup branch from e434fe8 to 734a2c1 Compare December 28, 2023 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant