Skip to content

Fix source.end(); source.start(); not restarting - #782

Merged
pschatzmann merged 1 commit into
pschatzmann:mainfrom
plasticrake:fix/source-end-start
Apr 9, 2026
Merged

pschatzmann merged 1 commit into
pschatzmann:mainfrom
plasticrake:fix/source-end-start

Conversation

@plasticrake

Copy link
Copy Markdown
Contributor

This change allows you to call start() on a source after calling end().

Currently the following code will not work:

a2dp_source.start();
delay(1000);
a2dp_source.end();
delay(1000);
a2dp_source.start();  // Does not start and logs error `initialize bluedroid failed` 

As the existing variable is_bluedroid_initialized is set to false when end() is called even though it is still initialized.

@pschatzmann
pschatzmann merged commit a7d1a6a into pschatzmann:main Apr 9, 2026
@pschatzmann

Copy link
Copy Markdown
Owner

Thanks for your contribution!

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.

2 participants