Fix transcode change creating invalid sessions in the DB

This commit is contained in:
samwiseg00 2018-10-18 22:19:36 -04:00
parent 6e4fa3ef63
commit 7271e66ab8

View file

@ -282,7 +282,7 @@ class ActivityHandler(object):
if this_state == 'buffering':
self.on_buffer()
if this_transcode_key != last_transcode_key:
if this_transcode_key != last_transcode_key and this_state != 'stopped':
self.on_change()
# If a client doesn't register stop events (I'm looking at you PHT!) check if the ratingKey has changed