Mini refactoring
This commit is contained in:
parent
8493c7cb40
commit
6769b903bc
@ -105,16 +105,14 @@ func sendDiscoveryPacketTask(trigger chan bool) {
|
|||||||
if !shuttingDown {
|
if !shuttingDown {
|
||||||
discovery, err := localHost.GetIdentification()
|
discovery, err := localHost.GetIdentification()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("sending discovery identification error: %v", err)
|
log.Printf("sending discovery identification error: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = driver.SendDiscoveryPacket(discovery)
|
err = driver.SendDiscoveryPacket(discovery)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err.Error())
|
log.Println(err.Error())
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if shuttingDown {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user