mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
started structuring project for testing + lint driven various refactoring
This commit is contained in:
parent
64099bc1fb
commit
bc3be7dd2b
5 changed files with 17 additions and 18 deletions
|
@ -241,8 +241,11 @@ func (d *BLERecon) onPeriphDisconnected(p gatt.Peripheral, err error) {
|
|||
}
|
||||
|
||||
func (d *BLERecon) onPeriphConnected(p gatt.Peripheral, err error) {
|
||||
// timed out
|
||||
if d.currDevice == nil {
|
||||
if err != nil {
|
||||
log.Warning("Connected to %s but with error: %s", p.ID(), err)
|
||||
return
|
||||
} else if d.currDevice == nil {
|
||||
// timed out
|
||||
log.Warning("Connected to %s but after the timeout :(", p.ID())
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue