From 81d20fa75827dcf56e11afd09862343d34de4436 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Tue, 12 Mar 2019 17:28:41 +0100 Subject: [PATCH] fix: fixed a bug that caused hid.recon to crash if started more than once --- modules/hid/hid.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/hid/hid.go b/modules/hid/hid.go index 0262bb90..cbcb46c6 100644 --- a/modules/hid/hid.go +++ b/modules/hid/hid.go @@ -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 }