Be a bit more resilient with errors
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 25 Jan 2021 17:01:43 +0000 (18:01 +0100)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Tue, 26 Jan 2021 10:58:14 +0000 (10:58 +0000)
In case we'd been to slow to fullfill or we're still processing a
cancelled request better not just crash. We still log the issue though.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/vfs/cfapi/cfapiwrapper.cpp

index 1b40222ab9c6d742722ef7821a79666d4bbd7db1..b57e8a593672a5a81e2af13775a31aef8f078b36 100644 (file)
@@ -52,7 +52,6 @@ void cfApiSendTransferInfo(const CF_CONNECTION_KEY &connectionKey, const CF_TRAN
     opParams.TransferData.Length.QuadPart = length;
 
     const qint64 result = CfExecute(&opInfo, &opParams);
-    Q_ASSERT(result == S_OK);
     if (result != S_OK) {
         qCCritical(lcCfApiWrapper) << "Couldn't send transfer info" << QString::number(transferKey.QuadPart, 16) << ":" << _com_error(result).ErrorMessage();
     }