check file-hashes before content comparison

This commit is contained in:
Frank 2021-08-16 09:30:01 +02:00
parent 31ae7a6d3a
commit fcf2d041cb

View file

@ -50,7 +50,12 @@ public abstract class Config {
}
}
private boolean compareForSync(SyncFileHash syncFileHash, SyncFileHash syncFileHash1, FileContentWrapper content) {
private boolean compareForSync(SyncFileHash clientHash, SyncFileHash serverHash, FileContentWrapper content) {
//identical hashes => nothing to do
if (clientHash.equals(serverHash)) {
return false;
}
return keeper.compareAndUpdateForSync(content);
}