~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/SleepCommand.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2011-05-26 22:22:12 UTC
  • mfrom: (2.5.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110526222212-8ck4ia81l227m44l
Tags: 1.11.2-1
* New upstream release
* debian/control:
  + Updated Standards-Version to 3.9.2
* debian/copyright:
  + Updated as per latest DEP-5 specification

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
bool SleepCommand::execute() {
53
53
  if(requestGroup_->downloadFinished() || requestGroup_->isHaltRequested()) {
54
54
    return true;
55
 
  } else if(checkPoint_.difference(global::wallclock) >= wait_) {
 
55
  } else if(checkPoint_.differenceInMillis(global::wallclock)+A2_DELTA_MILLIS
 
56
            >= wait_*1000) {
56
57
    engine_->addCommand(nextCommand_);
57
58
    nextCommand_ = 0;
 
59
    engine_->setNoWait(true);
58
60
    return true;
59
61
  } else {
60
62
    engine_->addCommand(this);