Fix websocket log spam

* Bug where websocket reports a session playing while /status/sessions
reports nothing.
This commit is contained in:
Jonathan Wong 2016-01-16 03:28:39 -08:00
parent 1de3c0d559
commit b4a25e33bb

View file

@ -54,7 +54,7 @@ class ActivityHandler(object):
monitor_proc.write_session(session=self.get_live_session(), notify=False) monitor_proc.write_session(session=self.get_live_session(), notify=False)
def on_start(self): 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())) logger.debug(u"PlexPy ActivityHandler :: Session %s has started." % str(self.get_session_key()))
# Fire off notifications # Fire off notifications