/* */ #include "HaveEraseCommand.h" bool HaveEraseCommand::execute() { if(e->torrentMan->isHalt()) { return true; } if(cp.elapsed(interval)) { cp.reset(); e->torrentMan->removeAdvertisedPiece(5); } e->commands.push_back(this); return false; }