From f52075eb261d542b3c81022d6eecfb98b7b93757 Mon Sep 17 00:00:00 2001 From: Andreas B <6439218+YouKnowBlom@users.noreply.github.com> Date: Wed, 19 Feb 2020 16:09:00 +0100 Subject: [PATCH] Remove unnecessary check when clearing playPauseClickTimeout --- src/controllers/playback/videoosd.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/playback/videoosd.js b/src/controllers/playback/videoosd.js index 754a214149..7624724fba 100644 --- a/src/controllers/playback/videoosd.js +++ b/src/controllers/playback/videoosd.js @@ -1231,9 +1231,7 @@ define(["playbackManager", "dom", "inputManager", "datetime", "itemHelper", "med shell.disableFullscreen(); }); - if (playPauseClickTimeout) { - clearTimeout(playPauseClickTimeout); - } + clearTimeout(playPauseClickTimeout); var player = currentPlayer; view.removeEventListener("viewbeforehide", onViewHideStopPlayback); releaseCurrentPlayer();