Cleared pre and post download handlers from BitTorrent tracker request

This commit is contained in:
Tatsuhiro Tsujikawa
2012-09-01 00:53:30 +09:00
parent b336725ca0
commit ce5c016066

View File

@@ -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;