/* */ #include "TorrentDownloadEngine.h" void TorrentDownloadEngine::onEndOfRun() { torrentMan->diskWriter->closeFile(); if(torrentMan->downloadComplete()) { torrentMan->remove(); torrentMan->fixFilename(); } else { torrentMan->save(); } }