quick frontend (app): avoid crash when a listener is removed while being called
This commit is contained in:
parent
5a9886d390
commit
94fccd1176
1 changed files with 1 additions and 1 deletions
|
|
@ -619,7 +619,7 @@ class QuickApp(object):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
profile = kwargs.get("profile")
|
profile = kwargs.get("profile")
|
||||||
for listener, profiles_filter in listeners.items():
|
for listener, profiles_filter in list(listeners.items()):
|
||||||
if profile is None or not profiles_filter or profile in profiles_filter:
|
if profile is None or not profiles_filter or profile in profiles_filter:
|
||||||
listener(*args, **kwargs)
|
listener(*args, **kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue