Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential triggerReady infinite-loop #2398

Closed
wants to merge 1 commit into from

Conversation

imbcmdth
Copy link
Member

If the readyQueue_ is not reset before processing, a triggerReady later on in the call graph potentially results in an infinite loop.

If the readyQueue_ is not reset before processing, a triggerReady later on in the call graph potentially results in an infinite loop
@heff
Copy link
Member

heff commented Jul 22, 2015

At first I was wondering if this would affect ready handlers that were added during the ready loop, but since we set isReady to true first it won't.

LGTM

@imbcmdth
Copy link
Member Author

@heff That nuance is precisely what threw me off when looking over vjs5's implementation!

dmlap pushed a commit to dmlap/video.js that referenced this pull request Jul 23, 2015
@dmlap dmlap closed this Jul 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants