From a59c51b825741848ec0f20d65976ae982800c88b Mon Sep 17 00:00:00 2001 From: evilsocket Date: Wed, 27 Mar 2019 16:13:41 +0100 Subject: [PATCH] fix: fixed a bug which broke ble.enum --- modules/ble/ble_recon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ble/ble_recon.go b/modules/ble/ble_recon.go index ef54a5be..afb2e216 100644 --- a/modules/ble/ble_recon.go +++ b/modules/ble/ble_recon.go @@ -239,7 +239,7 @@ func (mod *BLERecon) enumAllTheThings(mac string) error { } mod.setCurrentDevice(dev) - if err := mod.Configure(); err != nil && err != session.ErrAlreadyStarted(mod.Name()) { + if err := mod.Configure(); err != nil && err.Error() != session.ErrAlreadyStarted("ble.recon").Error() { return err }