bug fix
This commit is contained in:
1 parent
7e5b2246fa
commit
ea2be153b0
2 files changed
+12
-3
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user