Merge pull request #1328 from samwiseg00/fix/on_change

Fix transcode change creating invalid sessions in the DB
This commit is contained in:
JonnyWong16
2018-10-19 19:48:41 -07:00
committed by GitHub

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