Skip to content

Commit

Permalink
tuned-ppd: Count profile hold cookies from 1
Browse files Browse the repository at this point in the history
Counting from 0 causes issues for gnome-settings-daemon,
for which a null cookie means that it currently has no
active hold.
  • Loading branch information
zacikpa committed Nov 6, 2024
1 parent c082797 commit 73489be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuned/ppd/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def as_dict(self):
class ProfileHoldManager(object):
def __init__(self, controller):
self._holds = {}
self._cookie_counter = 0
self._cookie_counter = 1
self._controller = controller

def _callback(self, cookie, app_id):
Expand Down

0 comments on commit 73489be

Please sign in to comment.