mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
fix: updating gopacket to v1.1.16 fixed a bug which made wifi.recon off to timeout
This commit is contained in:
parent
4c5a776f86
commit
b450747f4e
41 changed files with 4693 additions and 819 deletions
|
@ -404,6 +404,7 @@ func (w *WiFiModule) Start() error {
|
|||
w.updateStats(dot11, packet)
|
||||
}
|
||||
}
|
||||
|
||||
w.pktSourceChanClosed = true
|
||||
})
|
||||
|
||||
|
@ -418,10 +419,8 @@ func (w *WiFiModule) Stop() error {
|
|||
if !w.pktSourceChanClosed {
|
||||
w.pktSourceChan <- nil
|
||||
}
|
||||
w.reads.Wait()
|
||||
// close the pcap handle to make the main for exit
|
||||
w.handle.Close()
|
||||
// close the pcap handle to make the main for exit
|
||||
// wait for the loop to exit.
|
||||
w.reads.Wait()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue