Skip to content

Commit

Permalink
Stop processing when transfer timed out in resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
palango authored and hackaugusto committed Jun 15, 2020
1 parent e44df7d commit 7a7ed9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion raiden/network/resolver/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def reveal_secret_with_resolver(
log.debug(
"Stopped using resolver, transfer expired", resolver_endpoint=resolver_endpoint
)
return False
# The locked transfer is expired now, so it makes no sense to continue processing it.
# When returning `False`, the event handler would contiue processing the events, which
# is not what is wanted here, so we return `True` to cancel
return True

response = None

Expand Down

0 comments on commit 7a7ed9f

Please sign in to comment.