Przeglądaj źródła

Fixed compile error without BitTorrent support

Tatsuhiro Tsujikawa 13 lat temu
rodzic
commit
7bc2a14d9f
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/RequestGroupMan.cc

+ 2 - 0
src/RequestGroupMan.cc

@@ -362,6 +362,7 @@ public:
                    static_cast<unsigned long>(nextGroups.size())));
             e_->getRequestGroupMan()->insertReservedGroup(0, nextGroups);
           }
+#ifdef ENABLE_BITTORRENT
           // For in-memory download (e.g., Magnet URI), the
           // FileEntry::getPath() does not return actual file path, so
           // we don't remove it.
@@ -383,6 +384,7 @@ public:
               }
             }
           }
+#endif // ENABLE_BITTORRENT
         } else {
           A2_LOG_NOTICE
             (fmt(_("Download GID#%lld not complete: %s"),