hanlindev / plugin_android_library

Plugin android library for Sana Mobile Client
Other
1 stars 4 forks source link

BytePushingDataEvent's bytesAvailable returns the same -1 when there is no data to read and when there is an exception. #129

Open weitsang opened 9 years ago

weitsang commented 9 years ago

There is no way for the caller to distinguish a normal case and an error case, so there is no way for the caller to recover from the error.

IOException should be thrown to the caller.