PropagateUpload: Fix double-emission of finished #3844
authorChristian Kamm <mail@ckamm.de>
Wed, 28 Oct 2015 08:53:54 +0000 (09:53 +0100)
committerChristian Kamm <mail@ckamm.de>
Wed, 28 Oct 2015 08:53:54 +0000 (09:53 +0100)
src/libsync/propagateupload.cpp

index 4fe2182f2aee854c817e4676993b7172b2164250..88cf153c14ea20e299a6d3e51f61bee6fa093c33 100644 (file)
@@ -563,7 +563,7 @@ void PropagateUploadFileQNAM::slotPutFinished()
         // This works around a bug in QNAM wich might reuse a non-empty buffer for the next request.
         qDebug() << "Forcing job abort on HTTP connection reset with Qt < 5.4.2.";
         _propagator->_anotherSyncNeeded = true;
-        done(SyncFileItem::SoftError, tr("Forcing job abort on HTTP connection reset with Qt < 5.4.2."));
+        abortWithError(SyncFileItem::SoftError, tr("Forcing job abort on HTTP connection reset with Qt < 5.4.2."));
         return;
     }
 #endif