Code cleanup
This commit is contained in:
parent
2b8bb40f6d
commit
632f104f03
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue