From d87e445afc3aa46e5d26759fc6c865ed4dba9bbe Mon Sep 17 00:00:00 2001 From: Schaap Date: Mon, 9 Feb 2026 20:38:30 +0100 Subject: [PATCH] Resolve race condition when starting AsyncSniffer --- scapy/sendrecv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index ec74872418c..3b119a1e905 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -1314,9 +1314,9 @@ def stop_cb(): self.stop_cb = stop_cb try: + self.continue_sniff = True if started_callback: started_callback() - self.continue_sniff = True # Start timeout if timeout is not None: