Fix for the fix xD

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-12-11 01:31:08 +01:00 committed by AndyScherzinger
parent ce7dbb437f
commit 27954c4287
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -139,7 +139,7 @@ public class FilesystemDataProvider {
if (data.getModifiedAt() != modifiedAt) {
long newCrc32 = getFileChecksum(localPath);
if (data.getCrc32() == null || (newCrc32 != -1 && data.getCrc32().equals(Long.toString(newCrc32)))) {
if (data.getCrc32() == null || (newCrc32 != -1 && !data.getCrc32().equals(Long.toString(newCrc32)))) {
cv.put(ProviderMeta.ProviderTableMeta.FILESYSTEM_CRC32, Long.toString(newCrc32));
cv.put(ProviderMeta.ProviderTableMeta.FILESYSTEM_FILE_SENT_FOR_UPLOAD, 0);
}