Commit f943b67
committed
Fix sniffer join waiting indefinitely
When trying to stop a sniffer that was not already started,
Scapy_Exception("Unsupported (offline or unsupported socket)") is no
more raised and join() is waiting indefinitely.
Restore the previous stop_cb behavior.
Fixes: 6689da4 ("Add missing type in AsyncSniffer (secdev#4665)")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>1 parent bd7f2a3 commit f943b67
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1150 | 1150 | | |
1151 | 1151 | | |
1152 | 1152 | | |
1153 | | - | |
| 1153 | + | |
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
| 1298 | + | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
| 1302 | + | |
1302 | 1303 | | |
1303 | 1304 | | |
1304 | 1305 | | |
1305 | 1306 | | |
1306 | | - | |
| 1307 | + | |
1307 | 1308 | | |
| 1309 | + | |
1308 | 1310 | | |
1309 | 1311 | | |
1310 | 1312 | | |
| |||
1400 | 1402 | | |
1401 | 1403 | | |
1402 | 1404 | | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
| 1405 | + | |
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
| |||
0 commit comments