Skip to content

Commit

Permalink
Restore sndrcv behaviour from before 53afe84
Browse files Browse the repository at this point in the history
  • Loading branch information
polybassa committed Sep 22, 2024
1 parent 30b0398 commit fec604f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scapy/sendrecv.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __init__(self,
rcv_pks=None, # type: Optional[SuperSocket]
prebuild=False, # type: bool
_flood=None, # type: Optional[_FloodGenerator]
threaded=False, # type: bool
threaded=True, # type: bool
session=None, # type: Optional[_GlobSessionType]
chainEX=False, # type: bool
stop_filter=None # type: Optional[Callable[[Packet], bool]]
Expand Down Expand Up @@ -266,8 +266,7 @@ def _sndrcv_snd(self):
self.hsent.setdefault(p.hashret(), []).append(p)
# Send packet
self.pks.send(p)
if self.inter:
time.sleep(self.inter)
time.sleep(self.inter)
if self.breakout:
break
i += 1
Expand Down

0 comments on commit fec604f

Please sign in to comment.