Skip to content

Commit

Permalink
Fix for reading an empty string from the zmq firehose
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Sep 4, 2014
1 parent 9627651 commit e1b7c7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion emdn/firehose.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def _read():
def _poll(timeout):
return self.__socket.poll(timeout)
def _read():
return self.__socket.recv_string()
result = self.__socket.recv_string()
if not result: raise EOFError()
return result

# All ZMQ operations are done through a Context,
# so use one we're given or create one for ourselves.
Expand Down

0 comments on commit e1b7c7a

Please sign in to comment.