mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 21:14:22 +01:00
Only try once
This commit is contained in:
parent
775227f24c
commit
9fc781c55e
@ -92,14 +92,11 @@ void Network::InitNetwork()
|
||||
|
||||
memset(myIP, 0, sizeof(myIP));
|
||||
Gui::gui->status_bar->queueMessage("Getting IP address via DHCP...");
|
||||
/* Try twice */
|
||||
|
||||
if (if_config(myIP, NULL, NULL, true) < 0) {
|
||||
if (if_config(myIP, NULL, NULL, true) < 0)
|
||||
{
|
||||
Gui::gui->status_bar->queueMessage("No DHCP reply");
|
||||
return;
|
||||
}
|
||||
}
|
||||
Gui::gui->status_bar->queueMessage("Got an address");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user