mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
fix: checking dongle pointer in hid.recon off
This commit is contained in:
parent
c830e64309
commit
1cb5e82186
1 changed files with 4 additions and 2 deletions
|
@ -203,7 +203,9 @@ func (mod *HIDRecon) Configure() error {
|
||||||
func (mod *HIDRecon) Stop() error {
|
func (mod *HIDRecon) Stop() error {
|
||||||
return mod.SetRunning(false, func() {
|
return mod.SetRunning(false, func() {
|
||||||
mod.waitGroup.Wait()
|
mod.waitGroup.Wait()
|
||||||
mod.dongle.Close()
|
if mod.dongle != nil {
|
||||||
mod.Debug("device closed")
|
mod.dongle.Close()
|
||||||
|
mod.Debug("device closed")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue