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

Refactor sync handling #41

Closed
wants to merge 6 commits into from

Conversation

Jalle19
Copy link
Collaborator

@Jalle19 Jalle19 commented May 12, 2014

This factors out the state tracking to a separate class. The class performs locking internally so the caller doesn't need to bother with it.

The second commit adds calls to WaitForState() to the various getters XBMC calls during initialization. This default timeout is taken from the response timeout setting. This should prevent XBMC from fetching channels (and other things) before the client has actually loaded them all, which would otherwise cause missing channels.

@adamsutton the implementation of WaitForState() isn't exactly pretty but it seems to do the job. I have not tested this on Windows yet, could be that we need to include a platform header which defines usleep().

@adamsutton
Copy link
Owner

Closing, this has already been merged but was rebased to tidy up.

@adamsutton adamsutton closed this May 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants