From 13afbe07a8f512f9ddf390d893ccd51a0c6623d9 Mon Sep 17 00:00:00 2001 From: QCFium Date: Sat, 4 Sep 2021 01:16:12 +0900 Subject: [PATCH] Avoid trying to load more comment when there has been an error --- source/scenes/video_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/scenes/video_player.cpp b/source/scenes/video_player.cpp index 342ed56b..77eaffab 100644 --- a/source/scenes/video_player.cpp +++ b/source/scenes/video_player.cpp @@ -176,7 +176,7 @@ static void update_bottom_view() { ->set_y_centered(false); comment_all_view->set_on_child_drawn(2, [] (const ScrollView &, int) { - if (cur_video_info.has_more_comments()) { + if (cur_video_info.has_more_comments() && cur_video_info.error == "") { if (!is_async_task_running(load_video_page) && !is_async_task_running(load_more_comments)) queue_async_task(load_more_comments, &cur_video_info); }