Procházet zdrojové kódy

Fixed compile error without libnettle, libgcrypt and openssl

Tatsuhiro Tsujikawa před 13 roky
rodič
revize
db86ffbca9
1 změnil soubory, kde provedl 14 přidání a 13 odebrání
  1. 14 13
      src/RequestGroup.cc

+ 14 - 13
src/RequestGroup.cc

@@ -253,21 +253,22 @@ SharedHandle<CheckIntegrityEntry> RequestGroup::createCheckIntegrityEntry()
     } else {
       checkEntry.reset(new StreamCheckIntegrityEntry(this));
     }
-#ifdef ENABLE_MESSAGE_DIGEST
-  } else if(downloadFinishedByFileLength() &&
-            downloadContext_->isChecksumVerificationAvailable()) {
-    pieceStorage_->markAllPiecesDone();
-    loadAndOpenFile(infoFile);
-    ChecksumCheckIntegrityEntry* tempEntry =
-      new ChecksumCheckIntegrityEntry(this);
-    tempEntry->setRedownload(true);
-    checkEntry.reset(tempEntry);
   } else
-#endif // ENABLE_MESSAGE_DIGEST
-    {
+#ifdef ENABLE_MESSAGE_DIGEST
+    if(downloadFinishedByFileLength() &&
+       downloadContext_->isChecksumVerificationAvailable()) {
+      pieceStorage_->markAllPiecesDone();
       loadAndOpenFile(infoFile);
-      checkEntry.reset(new StreamCheckIntegrityEntry(this));
-    }
+      ChecksumCheckIntegrityEntry* tempEntry =
+        new ChecksumCheckIntegrityEntry(this);
+      tempEntry->setRedownload(true);
+      checkEntry.reset(tempEntry);
+    } else
+#endif // ENABLE_MESSAGE_DIGEST
+      {
+        loadAndOpenFile(infoFile);
+        checkEntry.reset(new StreamCheckIntegrityEntry(this));
+      }
   return checkEntry;
 }