Fixed wait delay for IP command (#250)

I initially wanted a one-second wait but made a human mistake.

Fixes #249
This commit is contained in:
Fedor Korotkov
2022-09-19 21:44:14 +04:00
committed by GitHub
parent 4d08e6365e
commit 0229138bd5
+3 -2
View File
@@ -47,8 +47,9 @@ struct IP: AsyncParsableCommand {
if let ip = try Leases().resolveMACAddress(macAddress: vmMACAddress) {
return ip
}
try await Task.sleep(nanoseconds: 1_000_000)
// wait a second
try await Task.sleep(nanoseconds: 1_000_000_000)
} while Date.now < waitUntil
return nil