mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
fix: fixed a bug which made ble.enum work only once per execution (fixes #163)
This commit is contained in:
parent
51439203bd
commit
1fa9160407
1 changed files with 1 additions and 1 deletions
|
@ -32,9 +32,9 @@ func (mod *BLERecon) onPeriphDisconnected(p gatt.Peripheral, err error) {
|
|||
if mod.Running() {
|
||||
// restore scanning
|
||||
mod.Info("device disconnected, restoring discovery.")
|
||||
mod.setCurrentDevice(nil)
|
||||
mod.gattDevice.Scan([]gatt.UUID{}, true)
|
||||
}
|
||||
mod.setCurrentDevice(nil)
|
||||
}
|
||||
|
||||
func (mod *BLERecon) onPeriphConnected(p gatt.Peripheral, err error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue