Only try to connect Alexa if we got a Plex token

This commit is contained in:
tomkat83 2017-03-05 15:44:01 +01:00
parent 57408c5137
commit df6d753c18
1 changed files with 2 additions and 1 deletions

View File

@ -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'))