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

Don't use any polling when idle mode is used #34

Merged
merged 1 commit into from
Dec 30, 2012
Merged

Conversation

eonpatapon
Copy link
Owner

No description provided.

@@ -428,8 +428,6 @@ class MPDWrapper(mpd.MPDClient):
self.stop()

def last_status(self):
if time.time() - self._time >= 2:
self.timer_callback()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why we should refresh the properties here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, it's probably not necessary. I guess I was just afraid of self._status becoming out of date for some reason...

grawity added a commit that referenced this pull request Dec 30, 2012
Don't use any polling when idle mode is used
@grawity grawity merged commit 201727c into master Dec 30, 2012
@eonpatapon eonpatapon deleted the no-polling-2 branch December 31, 2012 08:56
grawity added a commit that referenced this pull request Dec 31, 2012
Keep polling for now, to detect connection loss during idle (issue #35).
Maybe a better solution will be found in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants