Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Exception for Async Receivers #6
If the receiver implemented for a plugin returns true for the isAsync method, this line throws an Exception:
This is because the
Possible workarounds include not calling the method for unordered broadcasts, or catching the exception, but I do not know the surrounding code enough to assess the impact.
Thank you for reporting this!
I believe this should only occur under specific conditions:
Can you confirm that those two conditions must be met?
Assuming yes, the solution we'd probably implement is: Modify
Until that is implemented, the workaround for the time being is to avoid making plug-in settings asynchronous.
added a commit
Jan 30, 2016
Thank you very much for looking into this, and I apologize for not providing a proof of concept in the original report (https://github.com/giech/arduinotaskerbluetooth/tree/master/BluetoothSerialfromTasker contains code that made the exception fire.)
I can indeed confirm that, at least in my case, the app was only creating async plug-in settings with the client, and not the host SDK.
The commit looks like it fixes the issue, so I am closing it.
Thank you so much for the fix!