Cleared pre and post download handlers from BitTorrent tracker request

pull/28/head
Tatsuhiro Tsujikawa 2012-09-01 00:53:30 +09:00
parent b336725ca0
commit ce5c016066
1 changed files with 2 additions and 0 deletions

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;