mirror of https://github.com/secdev/scapy.git
Python 3: fix sndrcv
This commit is contained in:
parent
e3dea4954a
commit
f5fb0bd033
|
@ -179,7 +179,7 @@ def sndrcv(pks, pkt, timeout=None, inter=0, verbose=None, chainCC=False,
|
||||||
autostop = 0
|
autostop = 0
|
||||||
|
|
||||||
while retry >= 0:
|
while retry >= 0:
|
||||||
if timeout < 0:
|
if timeout is not None and timeout < 0:
|
||||||
timeout = None
|
timeout = None
|
||||||
stopevent = threading.Event()
|
stopevent = threading.Event()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue