From b4a25e33bbefa9d16d96c4b947644482fb9f80e8 Mon Sep 17 00:00:00 2001 From: Jonathan Wong Date: Sat, 16 Jan 2016 03:28:39 -0800 Subject: [PATCH] Fix websocket log spam * Bug where websocket reports a session playing while /status/sessions reports nothing. --- plexpy/activity_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/activity_handler.py b/plexpy/activity_handler.py index 967a2e21..a9a5b822 100644 --- a/plexpy/activity_handler.py +++ b/plexpy/activity_handler.py @@ -54,7 +54,7 @@ class ActivityHandler(object): monitor_proc.write_session(session=self.get_live_session(), notify=False) def on_start(self): - if self.is_valid_session(): + if self.is_valid_session() and self.get_live_session(): logger.debug(u"PlexPy ActivityHandler :: Session %s has started." % str(self.get_session_key())) # Fire off notifications