Commit c198e9a8 authored by Beat Küng's avatar Beat Küng

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.
parent 8a23979e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment