Fix client buffering identification in certain scenarios

This commit is contained in:
samwiseg00 2018-10-08 10:54:09 -04:00
parent 4302c4bc0d
commit 1a46e09928

View file

@ -275,13 +275,13 @@ class ActivityHandler(object):
elif this_state == 'stopped': elif this_state == 'stopped':
self.on_stop() self.on_stop()
elif this_state == 'buffering':
self.on_buffer()
elif this_state == 'paused': elif this_state == 'paused':
# Update the session last_paused timestamp # Update the session last_paused timestamp
self.on_pause(still_paused=True) self.on_pause(still_paused=True)
if this_state == 'buffering':
self.on_buffer()
if this_transcode_key != last_transcode_key and this_state != 'buffering': if this_transcode_key != last_transcode_key and this_state != 'buffering':
self.on_change() self.on_change()