• 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
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
analysis_options.yaml Loading commit data...
analysis_options_repo.yaml Loading commit data...
appveyor.yml Loading commit data...