• amirh's avatar
    Cancel the animated image stream timer if all listeners were removed. (#13158) · 78e044f5
    amirh authored
    This is a bug in my previous CL: instead of cancelling the timer if
    there are no more listeners, I canceled it if there were listeners (I
    can claim I just missed a not :) ).
    
    Not cancelling the timer when removing the last listener was not that bad, as
    the timer callback is guarded by a check to see if there are listeners.
    So the animation will not continue.
    
    But in the case there were multiple listeners on the same stream, and
    one of them is removed, this bug will stop the animation for all other
    listeners.
    I added a test case for this scenario.
    78e044f5
Name
Last commit
Last update
..
animation Loading commit data...
cupertino Loading commit data...
engine Loading commit data...
examples Loading commit data...
foundation Loading commit data...
gestures Loading commit data...
harness Loading commit data...
material Loading commit data...
painting Loading commit data...
physics Loading commit data...
rendering Loading commit data...
scheduler Loading commit data...
semantics Loading commit data...
services Loading commit data...
widgets Loading commit data...