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:
parent
0ff8040895
commit
59cf449799
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue