Skip to content

Commit

Permalink
Avoid trying to load more comment when there has been an error
Browse files Browse the repository at this point in the history
  • Loading branch information
windows-server-2003 committed Sep 3, 2021
1 parent c742c36 commit 13afbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/scenes/video_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 13afbe0

Please sign in to comment.