Skip to content

Commit

Permalink
stop read loop on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
daa committed May 19, 2016
1 parent 0aa27ad commit 950b0df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions txzmq/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def shutdown(self):
if self.read_scheduled is not None:
self.read_scheduled.cancel()
self.read_scheduled = None
if self._read_loop is not None:
self._read_loop.stop()

def __repr__(self):
return "%s(%r, %r)" % (
Expand Down

0 comments on commit 950b0df

Please sign in to comment.