From 22cf34641b4505c2b8a19c509cf4b5600489fc62 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Tue, 9 Nov 2021 16:48:08 +0100 Subject: [PATCH] Cosmetics --- buscribe/buscribe/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/buscribe/buscribe/main.py b/buscribe/buscribe/main.py index 03f5ffb..4696f54 100644 --- a/buscribe/buscribe/main.py +++ b/buscribe/buscribe/main.py @@ -79,8 +79,6 @@ def main(channel, database="", base_dir=".", gevent.signal_handler(signal.SIGTERM, stop) - segments_end_time = None - while start_time < end_time: # If end time isn't given, use current time (plus fudge) to get a "live" segment list segments = common.get_best_segments(segments_dir, @@ -98,7 +96,7 @@ def main(channel, database="", base_dir=".", # If the hole is less than a minute old, or if we don't have new segments: wait for segments if datetime.utcnow() - start_time <= timedelta(minutes=1) or \ - len(segments) < 2: + segments == [None]: logging.info("Waiting for new or backfilled segments.") sleep(30)