Skip to content

Commit

Permalink
Merge pull request #4 from sean-cl/select-fix
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
ajdavis committed Aug 23, 2016
2 parents 728c82b + e3729f7 commit d5f4c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockupdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ def mock_server_receive(sock, length):
"""Receive `length` bytes from a socket object."""
msg = b''
while length:
if select.select([sock.fileno()], [], [], 1):
if select.select([sock.fileno()], [], [], 1)[0]:
try:
chunk = sock.recv(length)
if chunk == b'':
Expand Down

0 comments on commit d5f4c1f

Please sign in to comment.