1
0
Fork 0

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:
Pavol Žáčik 2024-04-19 09:51:31 +02:00
parent 737d8c0af4
commit b2ed1258c7
No known key found for this signature in database
GPG key ID: B99527D5E6487A92

View file

@ -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)