[skip ci] Fix rare crash when loading video feed
This commit is contained in:
1 parent
b101872906
commit
bb7407f75f
2 files changed
+12
-2
No files matched your search
@@ -68,7 +68,9 @@ function ExecuteJob() as void
|
||||
if response.error = Invidious.ERROR_NOT_AUTHENTICATED
|
||||
if feedSources.Count() = 1
|
||||
parent = feedContentNode.getParent()
|
||||
parent.removeChild(feedContentNode)
|
||||
if parent <> invalid
|
||||
parent.removeChild(feedContentNode)
|
||||
end if
|
||||
JobSuccess()
|
||||
return
|
||||
end if
|
||||
@@ -80,7 +82,9 @@ function ExecuteJob() as void
|
||||
LogWarnNoTelemetry(feedSource.endpoint, "feedSource not available:", response.error)
|
||||
if feedSources.Count() = 1
|
||||
parent = feedContentNode.getParent()
|
||||
parent.removeChild(feedContentNode)
|
||||
if parent <> invalid
|
||||
parent.removeChild(feedContentNode)
|
||||
end if
|
||||
JobSuccess()
|
||||
return
|
||||
end if
|
||||
|
||||
Reference in new issue
Block a user