David Rose hace 23 años
padre
commit
aa44768bae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      panda/src/downloader/httpChannel.cxx

+ 1 - 1
panda/src/downloader/httpChannel.cxx

@@ -217,11 +217,11 @@ run() {
     if (_nonblocking && _download_throttle) {
     if (_nonblocking && _download_throttle) {
       double now = ClockObject::get_global_clock()->get_real_time();
       double now = ClockObject::get_global_clock()->get_real_time();
       double elapsed = now - _last_run_time;
       double elapsed = now - _last_run_time;
-      _last_run_time = now;
       if (elapsed < _seconds_per_update) {
       if (elapsed < _seconds_per_update) {
         // Come back later.
         // Come back later.
         return true;
         return true;
       }
       }
+      _last_run_time = now;
       _bytes_requested += _bytes_per_update;
       _bytes_requested += _bytes_per_update;
     }
     }
     switch (_download_dest) {
     switch (_download_dest) {