remove wrong assert that is blocing the run of debug client
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 28 Feb 2022 13:45:36 +0000 (14:45 +0100)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Thu, 17 Mar 2022 23:28:02 +0000 (23:28 +0000)
if the server has files with invalid modtime this assert will trigger
even though the code is handling the situation

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/propagatedownload.cpp

index 5bdd72d5b9d10683e674adf6a353f2dd7a111892..bc2922070038d78ecf267c2813537436a79bf478 100644 (file)
@@ -563,7 +563,6 @@ void PropagateDownloadFile::startAfterIsEncryptedIsChecked()
         return checksum_header.startsWith("SHA")
             || checksum_header.startsWith("MD5:");
     };
-    Q_ASSERT(_item->_modtime > 0);
     if (_item->_modtime <= 0) {
         qCWarning(lcPropagateDownload()) << "invalid modified time" << _item->_file << _item->_modtime;
     }