We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/tus/tus-android-client/blob/master/example/src/main/java/io/tus/android/example/MainActivity.java#L166 loops while(!isCancelled() && uploader.uploadChunk() > 0). However, according to https://github.com/tus/tus-java-client/blob/master/src/main/java/io/tus/java/client/TusUploader.java#L18 and https://github.com/tus/tus-java-client/blob/master/src/main/java/io/tus/java/client/TusUploader.java#L182, uploadChunk() may return 0 while the upload is not finished yet (for example, while the connection is down?).
while(!isCancelled() && uploader.uploadChunk() > 0)
uploadChunk()
Please fix the example to loop while(!isCancelled() && uploader.uploadChunk() > 1) instead.
while(!isCancelled() && uploader.uploadChunk() > 1)
The text was updated successfully, but these errors were encountered:
Thanks for bringing this to our attention! Would it be possible for you to open a PR for this?
Sorry, something went wrong.
No branches or pull requests
https://github.com/tus/tus-android-client/blob/master/example/src/main/java/io/tus/android/example/MainActivity.java#L166 loops
while(!isCancelled() && uploader.uploadChunk() > 0)
. However, according to https://github.com/tus/tus-java-client/blob/master/src/main/java/io/tus/java/client/TusUploader.java#L18 and https://github.com/tus/tus-java-client/blob/master/src/main/java/io/tus/java/client/TusUploader.java#L182,uploadChunk()
may return 0 while the upload is not finished yet (for example, while the connection is down?).Please fix the example to loop
while(!isCancelled() && uploader.uploadChunk() > 1)
instead.The text was updated successfully, but these errors were encountered: