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

Control fails after some time #6

Open
machinekoder opened this issue Jan 21, 2022 · 1 comment
Open

Control fails after some time #6

machinekoder opened this issue Jan 21, 2022 · 1 comment

Comments

@machinekoder
Copy link

I'm experiencing some issues when the application is running for multiple hours sending BLE commands the Luke Roberts. I haven't managed to debug the issue yet, but suspect that this could be related to some race conditions.

BleGattClient starts a tasks sending queued commands, we add commands to the queue via http request callback. Since there is no lock writing those commands to the queue, I suspect there could be a race condition.

@martgras
Copy link
Owner

Quite possible - I noticed something similar as well although for me it's days not hours. So far I didn't manage to track it down.
A reace condition sounds quite possible.
I'm away the next 2 weeks and can't test / debug.
If you find anything happy to accept a PR 🙂

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

No branches or pull requests

2 participants