ppd: Fix hold releasing
Do not iterate directly through the dictionary of holds, because it's being modified. Instead, iterate through the list of the dictionary keys.
This commit is contained in:
parent
737d8c0af4
commit
b2ed1258c7
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class ProfileHoldManager(object):
|
|||
self._controller.switch_profile(new_profile)
|
||||
|
||||
def clear(self):
|
||||
for cookie in self._holds:
|
||||
for cookie in list(self._holds.keys()):
|
||||
self._cancel(cookie)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue