From c198e9a8fe5f5967798646021bebb03a915ea342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 2 Oct 2017 14:55:43 +0200 Subject: [PATCH] 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. --- src/AnalyzeView/LogDownloadController.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AnalyzeView/LogDownloadController.cc b/src/AnalyzeView/LogDownloadController.cc index ed912a421..5253814b9 100644 --- a/src/AnalyzeView/LogDownloadController.cc +++ b/src/AnalyzeView/LogDownloadController.cc @@ -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); -- 2.22.0