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
commit c098175ba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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