Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
198
Issues
198
List
Boards
Labels
Service Desk
Milestones
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
d7bc9270
Commit
d7bc9270
authored
Dec 18, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow handlers list to be modifed while iterating
parent
ac9bec3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
gajim/common/ged.py
gajim/common/ged.py
+3
-1
No files found.
gajim/common/ged.py
View file @
d7bc9270
...
...
@@ -87,7 +87,9 @@ def raise_event(self, event_name, *args, **kwargs):
log
.
debug
(
'%s Args: %s'
,
event_name
,
str
(
args
))
if
event_name
in
self
.
handlers
:
node_processed
=
False
for
_priority
,
handler
in
self
.
handlers
[
event_name
]:
# Iterate over a copy of the handlers list, so while iterating
# the original handlers list can be modified
for
_priority
,
handler
in
list
(
self
.
handlers
[
event_name
]):
try
:
if
handler
(
*
args
,
**
kwargs
):
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment