fix: fixed a bug which broke ble.enum

This commit is contained in:
evilsocket 2019-03-27 16:13:41 +01:00
commit a59c51b825
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

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