Do not crash on findAndCancelDeletedJob.
authoralex-z <blackslayer4@gmail.com>
Thu, 9 Dec 2021 09:11:02 +0000 (11:11 +0200)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Wed, 15 Dec 2021 13:41:29 +0000 (13:41 +0000)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/libsync/discoveryphase.cpp

index 5206f7e908489cc78bbca436cf9fcfd4c26eca01..aea3780e2f624d68e31505996d354acda75b2df3 100644 (file)
@@ -185,7 +185,7 @@ QPair<bool, QByteArray> DiscoveryPhase::findAndCancelDeletedJob(const QString &o
                 qCWarning(lcDiscovery) << "instruction" << instruction;
                 qCWarning(lcDiscovery) << "(*it)->_type" << (*it)->_type;
                 qCWarning(lcDiscovery) << "(*it)->_isRestoration " << (*it)->_isRestoration;
-                ENFORCE(false);
+                Q_ASSERT(false);
             }
             (*it)->_instruction = CSYNC_INSTRUCTION_NONE;
             result = true;