Mini refactoring

This commit is contained in:
Adam Štrauch 2021-09-09 18:35:32 +02:00
parent 8493c7cb40
commit 6769b903bc
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 2 additions and 4 deletions

View File

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