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 {