Skip to content

Commit ed0707e

Browse files
authored
Resolve race condition when starting AsyncSniffer (#4912)
1 parent b28640f commit ed0707e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/sendrecv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,9 +1314,9 @@ def stop_cb():
13141314
self.stop_cb = stop_cb
13151315

13161316
try:
1317+
self.continue_sniff = True
13171318
if started_callback:
13181319
started_callback()
1319-
self.continue_sniff = True
13201320

13211321
# Start timeout
13221322
if timeout is not None:

0 commit comments

Comments
 (0)