aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/Main.hx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/Main.hx b/src/server/Main.hx
index b5fe3a6..2635abb 100644
--- a/src/server/Main.hx
+++ b/src/server/Main.hx
@@ -243,12 +243,14 @@ class Main {
case RemoveVideo:
if (videoList.length == 0) return;
final url = data.removeVideo.url;
- if (videoList[0].url == url) videoTimer.stop();
+ if (videoList[0].url == url) {
+ videoTimer.stop();
+ if (videoList.length > 0) restartWaitTimer();
+ }
videoList.remove(
videoList.find(item -> item.url == url)
);
broadcast(data);
- if (videoList.length > 0) restartWaitTimer();
case Pause:
if (videoList.length == 0) return;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage