This commit is contained in:
Brahim Hadriche committed 2024-01-16 11:26:09 -05:00
1 parent 7e5b2246fa
commit ea2be153b0
2 files changed
+12 -3

No files matched your search

+3 -1
View File
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
Nothing worth mentioning yet.
### Fixed
- [Attempt #2] to fix a crash caused by execution timeout when stopping a video takes too long
## [0.19.1] - 2024-01-13
@@ -144,13 +144,20 @@ function Close(_unused as dynamic)
m.sponsorBlockTask = invalid
end if
m.top.control = "stop"
m.top.content = invalid
parent = m.top.getParent()
if parent <> invalid
parent.RemoveChild(m.top)
end if
SponsorBlock.RemoveNotifcation(m.notifications)
' Stopping a video is slow and synchronous, and can lead to execution timeout crashes.
try
m.top.control = "stop"
catch error
DialogUtils.ShowDialog(ErrorUtils.Format(error), "Error closing video", true)
end try
m.top.content = invalid
end function
function OnVideoPlayerStateChange() as void