fix: updating gopacket to v1.1.16 fixed a bug which made wifi.recon off to timeout

This commit is contained in:
evilsocket 2019-02-06 12:24:00 +01:00
commit b450747f4e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
41 changed files with 4693 additions and 819 deletions

View file

@ -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()
})
}