From 632f104f03d3ad14e82483b4474717a2736c2490 Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Sat, 9 Jan 2021 19:07:54 +0100 Subject: [PATCH] Code cleanup --- .../main/java/ctbrec/sites/manyvids/MVLiveHlsDownload.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/ctbrec/sites/manyvids/MVLiveHlsDownload.java b/common/src/main/java/ctbrec/sites/manyvids/MVLiveHlsDownload.java index de0eab83..be4adef2 100644 --- a/common/src/main/java/ctbrec/sites/manyvids/MVLiveHlsDownload.java +++ b/common/src/main/java/ctbrec/sites/manyvids/MVLiveHlsDownload.java @@ -12,9 +12,9 @@ import ctbrec.io.HttpClient; import ctbrec.recorder.download.hls.HlsDownload; public class MVLiveHlsDownload extends HlsDownload { - private static final Logger LOG = LoggerFactory.getLogger(MVLiveMergedHlsDownload.class); + private static final Logger LOG = LoggerFactory.getLogger(MVLiveHlsDownload.class); - private ScheduledExecutorService scheduler; + private transient ScheduledExecutorService scheduler; public MVLiveHlsDownload(HttpClient client) { super(client); @@ -30,7 +30,7 @@ public class MVLiveHlsDownload extends HlsDownload { t.setPriority(Thread.MIN_PRIORITY); return t; }); - scheduler.scheduleAtFixedRate(() -> updateCloudFlareCookies(), 120, 120, TimeUnit.SECONDS); + scheduler.scheduleAtFixedRate(this::updateCloudFlareCookies, 120, 120, TimeUnit.SECONDS); updateCloudFlareCookies(); super.start(); } finally {