Make --check-orphans work with --download

This commit is contained in:
Sude 2014-02-28 12:54:40 +02:00
parent fd5d9a4b43
commit 4dba1c2890

View File

@ -359,5 +359,9 @@ int main(int argc, char *argv[])
<< options_cli_all << std::endl; << options_cli_all << std::endl;
} }
// Orphan check was called at the same time as download. Perform it after download has finished
if (!config.sOrphanRegex.empty() && config.bDownload)
downloader.checkOrphans();
return 0; return 0;
} }