mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed a bug that caused hid.recon to crash if started more than once
This commit is contained in:
parent
3c1277ebbc
commit
81d20fa758
1 changed files with 4 additions and 0 deletions
|
@ -151,6 +151,10 @@ func (mod *HIDRecon) Configure() error {
|
|||
var err error
|
||||
var n int
|
||||
|
||||
if mod.Running() {
|
||||
return session.ErrAlreadyStarted
|
||||
}
|
||||
|
||||
if err, mod.useLNA = mod.BoolParam("hid.lna"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue