Skip to content

Commit

Permalink
Join broadcast queue when stopping raiden_service
Browse files Browse the repository at this point in the history
  • Loading branch information
konradkonrad committed Jan 7, 2021
1 parent 6a56c19 commit 0ca816c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions raiden/network/transport/matrix/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ def stop(self) -> None:
if self._stop_event.ready():
return
self.log.debug("Matrix stopping")
# Ensure, we send all broadcast messages before shutting down
self._broadcast_queue.join()
self._stop_event.set()
self._broadcast_event.set()

Expand Down

0 comments on commit 0ca816c

Please sign in to comment.