Skip to content

Commit 09d2767

Browse files
committed
Fix timeout in sndrcv
1 parent 869c336 commit 09d2767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scapy/sendrecv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ def _get_pkt():
118118
try:
119119
while True:
120120
r = _get_pkt()
121+
if stopevent.is_set():
122+
break
121123
if r is None:
122-
if stopevent.is_set():
123-
break
124124
continue
125125
ok = False
126126
h = r.hashret()

0 commit comments

Comments
 (0)