Skip to content

Commit

Permalink
[python] don't clear element inside the loop whe unsubscribing
Browse files Browse the repository at this point in the history
btw, keeping the regex and callbacks doesn't seem to be necessary as
nobody is using it, just the binding id
  • Loading branch information
gautierhattenberger committed Mar 7, 2018
1 parent a36c562 commit 2705ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/v1.0/python/pprzlink/ivy.py
Expand Up @@ -59,7 +59,7 @@ def stop(self):
def unsubscribe_all(self):
for b in self.bindings.keys():
IvyUnBindMsg(b)
del self.bindings[b]
self.bindings = {}

def shutdown(self):
try:
Expand Down
2 changes: 1 addition & 1 deletion lib/v2.0/python/pprzlink/ivy.py
Expand Up @@ -62,7 +62,7 @@ def stop(self):
def unsubscribe_all(self):
for b in self.bindings.keys():
IvyUnBindMsg(b)
del self.bindings[b]
self.bindings = {}

def shutdown(self):
try:
Expand Down

0 comments on commit 2705ced

Please sign in to comment.