-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
Do not set timer if no cache_time #308
Conversation
@@ -106,6 +106,8 @@ def sleep(self): | |||
def wake(self): | |||
self.sleeping = False | |||
cache_time = self.cache_time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stupid question, but why assign this to a new variable when we could use self.cache_time wherever needed in this function ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
habit I suppose (lookup costs - not relevant here). do you want it changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should plz
As an aside the following modules do not have
|
Also, I confirm this fixes my xrandr login crash problem (but I guess I need to fix smthing in the module too) |
Thanks ! |
I think the issue here doesn't mean the xrandr module is broken |
no, but I can say it is broken with -12 error codes I don't understand :( |
With #302 the problem appears to be when we wake a module that does not have its cache_time set
This PR checks for a cache_time value.