New clients added that aren't in the current client cache now trigger a reload if the list isn't "stale" yet.

This commit is contained in:
Dean Gardiner
2013-10-13 03:00:52 +13:00
parent efdf70acb2
commit bdeace8a68
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -43,14 +43,14 @@ class Plex(Notification):
client_success = False
client = self.server.clients.get(client_name)
if client:
if client and client['found']:
client_success = fireEvent('notify.plex.notifyClient', client, message, single=True)
if client_success:
client_names.pop(0)
if not client_success:
if self.server.staleClients():
if self.server.staleClients() or not client:
log.info('Failed to send notification to client "%s". '
'Client list is stale, updating the client list and retrying.', client_name)
self.server.updateClients(self.getClientNames())