Fix TypeError when PMS connection lost

This commit is contained in:
tomkat83 2017-05-20 18:52:51 +02:00
parent f785b828ca
commit b0d1fcfe8a

View file

@ -127,6 +127,8 @@ class UserClient(threading.Thread):
self.sslcert = self.getSSL() self.sslcert = self.getSSL()
if authenticated is False: if authenticated is False:
if self.currServer is None:
return False
log.debug('Testing validity of current token') log.debug('Testing validity of current token')
res = PlexAPI.PlexAPI().CheckConnection(self.currServer, res = PlexAPI.PlexAPI().CheckConnection(self.currServer,
token=self.currToken, token=self.currToken,