Merge pull request #866 from p-l-/fix-py3

Python 3: fix sndrcv
This commit is contained in:
Guillaume Valadon 2017-10-04 23:01:07 +02:00 committed by GitHub
commit 338ba111e9
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ def sndrcv(pks, pkt, timeout=None, inter=0, verbose=None, chainCC=False,
autostop = 0
while retry >= 0:
if timeout < 0:
if timeout is not None and timeout < 0:
timeout = None
stopevent = threading.Event()