Browse Source

LogDownloadController: start the timeout timer when requesting the first chunk

The timer was only started in _logData(), which was called after receiving
the first chunk of data (and only if that was successful), which means
if the first request failed or timed out, the UI would never switch to
a timed out state.
QGC4.4
Beat Küng 8 years ago
parent
commit
c198e9a8fe
  1. 1
      src/AnalyzeView/LogDownloadController.cc

1
src/AnalyzeView/LogDownloadController.cc

@ -407,6 +407,7 @@ LogDownloadController::_receivedAllData() @@ -407,6 +407,7 @@ LogDownloadController::_receivedAllData()
if(_prepareLogDownload()) {
//-- Request Log
_requestLogData(_downloadData->ID, 0, _downloadData->chunk_table.size()*MAVLINK_MSG_LOG_DATA_FIELD_DATA_LEN);
_timer.start(kTimeOutMilliseconds);
} else {
_resetSelection();
_setDownloading(false);

Loading…
Cancel
Save