From e2b4912067932dc505fead42ad837c1f1fa03cd1 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Fri, 23 Jul 2021 07:40:46 -0400 Subject: [PATCH] Fixed gevent import in main.py --- bazarr/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index e29164f9d..c9fcd7560 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -2,7 +2,7 @@ # Gevent monkey patch if gevent available. If not, it will be installed on during the init process. try: - from gevent import monkey, Greenlet + from gevent import monkey, Greenlet, joinall except ImportError: pass else: @@ -209,7 +209,7 @@ if settings.general.getboolean('use_sonarr'): greenlets.append(Greenlet.spawn(sonarr_signalr_client.start)) if settings.general.getboolean('use_radarr'): greenlets.append(Greenlet.spawn(radarr_signalr_client.start)) -gevent.joinall(greenlets) +joinall(greenlets) if __name__ == "__main__":