From e716b7f80b6e78f79f11db2febd8909bb14e97c6 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 3 Dec 2022 19:00:57 -0500 Subject: [PATCH] Added missing return statement --- CHANGELOG.md | 4 ++++ src/components/VideoPlayer/VideoPlayer.bs | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1b62a3c..3feecb0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Fixed +- Bug where app freezes if metadata fails to fetch + ## [0.5.0] - 2022-12-02 ### Added - Version check in settings page diff --git a/src/components/VideoPlayer/VideoPlayer.bs b/src/components/VideoPlayer/VideoPlayer.bs index c7c06203..420d7108 100644 --- a/src/components/VideoPlayer/VideoPlayer.bs +++ b/src/components/VideoPlayer/VideoPlayer.bs @@ -76,6 +76,7 @@ function OnVideoDetailsTaskResults() as void m.busySpinner.control = "stop" ShowDialog(`Failed to load video information for ${videoId}`, "Video load fail") CloseVideo() + return end if contentNode = CreateObject("roSGNode", "ContentNode")