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