Python 3: fix sndrcv

This commit is contained in:
Pierre LALET 2017-10-04 19:03:08 +02:00
parent e3dea4954a
commit f5fb0bd033
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()