Skip to content

Commit

Permalink
No Need to Try / Catch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Mar 1, 2024
1 parent 1c25633 commit 706eda9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/TizenVideo/TizenVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,10 @@ function TizenVideo(options) {
onPropChanged('selectedAudioTrackId');
}, function() {
// retries are necessary because there is a
// 30s timeout that cannot be controlled
// 30s timeout that cannot be configured
if (stream && retries <= maxRetries) {
retries++;
try {
window.webapis.avplay.stop();
} catch(e) {}
window.webapis.avplay.stop();
setTimeout(function() {
command('load', commandArgs);
}, 0);
Expand Down

0 comments on commit 706eda9

Please sign in to comment.