mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Try getting DHCP twice
This commit is contained in:
parent
787db07c8a
commit
8a7c6eee24
@ -90,11 +90,10 @@ void Network::InitNetwork()
|
|||||||
{
|
{
|
||||||
char myIP[16];
|
char myIP[16];
|
||||||
|
|
||||||
if (if_config(myIP, NULL, NULL, true) < 0)
|
/* Try twice */
|
||||||
{
|
if (if_config(myIP, NULL, NULL, true) < 0) {
|
||||||
fprintf(stderr, "\n\n\nError getting IP address via DHCP.\n");
|
if (if_config(myIP, NULL, NULL, true) < 0)
|
||||||
sleep(2);
|
TheC64->TheDisplay->display_status_string((char*)"NO DHCP ANSWER", 1);
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user