From f5c0016914fd81865d041df9eb71543bc59d7076 Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Sun, 27 Sep 2020 11:21:20 -0400 Subject: [PATCH] Remove redundant conditional --- jellyfin_kodi/jellyfin/ws_client.py | 2 +- jellyfin_kodi/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jellyfin_kodi/jellyfin/ws_client.py b/jellyfin_kodi/jellyfin/ws_client.py index 30f4c831..3d8d0dc2 100644 --- a/jellyfin_kodi/jellyfin/ws_client.py +++ b/jellyfin_kodi/jellyfin/ws_client.py @@ -62,7 +62,7 @@ class WSClient(threading.Thread): self.wsc.run_forever(ping_interval=10) - if not self.stop and monitor.waitForAbort(5): + if monitor.waitForAbort(5): break LOG.info("---<[ websocket ]") diff --git a/jellyfin_kodi/views.py b/jellyfin_kodi/views.py index 40e588fb..e3ee07c0 100644 --- a/jellyfin_kodi/views.py +++ b/jellyfin_kodi/views.py @@ -853,7 +853,7 @@ class Views(object): if not self.server.logged_in: window('%s.artwork' % prop, clear=True) - elif self.server.logged_in and self.media_folders is not None: + elif self.media_folders is not None: for library in self.media_folders: if library['Id'] == view_id and 'Primary' in library.get('ImageTags', {}):