Skip to content

Commit

Permalink
Better handle timeouts during pubsub
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdon committed Aug 24, 2015
1 parent 3af2eeb commit 7edcd90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asyncio_redis/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,8 @@ def _reader_coroutine(self):
yield from self._handle_item(self._push_answer)
except ConnectionLostError:
return
except asyncio.streams.IncompleteReadError:
return

@asyncio.coroutine
def _handle_item(self, cb):
Expand Down

0 comments on commit 7edcd90

Please sign in to comment.