Ver código fonte

Cleared pre and post download handlers from BitTorrent tracker request

Tatsuhiro Tsujikawa 13 anos atrás
pai
commit
ce5c016066
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/TrackerWatcherCommand.cc

+ 2 - 0
src/TrackerWatcherCommand.cc

@@ -245,6 +245,8 @@ TrackerWatcherCommand::createRequestGroup(const std::string& uri)
   rg->setDiskWriterFactory(dwf);
   rg->setFileAllocationEnabled(false);
   rg->setPreLocalFileCheckEnabled(false);
+  rg->clearPreDownloadHandler();
+  rg->clearPostDownloadHandler();
   util::removeMetalinkContentTypes(rg);
   A2_LOG_INFO(fmt("Creating tracker request group GID#%" PRId64 "", rg->getGID()));
   return rg;