1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-19 10:32:05 +01:00

Provide more detailed code comment.

This commit is contained in:
Guus der Kinderen 2020-11-09 16:23:21 +01:00 committed by Florian Schmaus
parent 0ff8040895
commit 59cf449799

View file

@ -214,7 +214,9 @@ public abstract class FileTransfer {
amountWritten += count;
}
// the connection was likely terminated abruptly if these are not equal
// When the amount of data written does not equal the expected amount, and
// the transfer was not explicitly cancelled, register an error (unless another
// error has already been logged).
if (!getStatus().equals(Status.cancelled) && getError() == null
&& amountWritten != fileSize) {
setStatus(Status.error);