Fix bug Unsharing in maintenance mode removes the file

This commit is contained in:
davigonz 2016-12-29 14:32:15 +01:00 committed by AndyScherzinger
parent 5300d96d01
commit badd90ef9d
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -90,7 +90,7 @@ public class UnshareOperation extends SyncOperation {
getStorageManager().saveFile(file); getStorageManager().saveFile(file);
getStorageManager().removeShare(share); getStorageManager().removeShare(share);
} else if (result.getCode() != ResultCode.MAINTENANCE_MODE && !existsFile(client, file.getRemotePath())) { } else if (!existsFile(client, file.getRemotePath()) && result.getCode() != ResultCode.MAINTENANCE_MODE) {
// unshare failed because file was deleted before // unshare failed because file was deleted before
getStorageManager().removeFile(file, true, true); getStorageManager().removeFile(file, true, true);
} }