From df6d753c18b1ec6c60a314446651f7c67db68250 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 5 Mar 2017 15:44:01 +0100 Subject: [PATCH] Only try to connect Alexa if we got a Plex token --- resources/lib/websocket_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/websocket_client.py b/resources/lib/websocket_client.py index 120ef9b2..4ec703fc 100644 --- a/resources/lib/websocket_client.py +++ b/resources/lib/websocket_client.py @@ -258,4 +258,5 @@ class Alexia_Websocket(WebSocket): plex_restricteduser """ return (self._threadSuspended or - window('plex_restricteduser') == 'true') + window('plex_restricteduser') == 'true' or + not window('plex_token'))