tajchert / BusWear

EventBus for Android Wear devices.
Apache License 2.0
257 stars 23 forks source link

Moved SendByteArrayToNode size check to constructor #11

Closed btkelly closed 8 years ago

btkelly commented 8 years ago

I moved the byte array size check to the constructor of SendByteArrayToNode allowing an app to fail gracefully if the limit is exceeded. Currently the check happens in the run method which has already been moved to another thread an thus cannot be caught by the existing "Object cannot be sent" log message.