Try getting DHCP twice

This commit is contained in:
simon.kagstrom 2010-01-10 17:23:27 +00:00
parent 787db07c8a
commit 8a7c6eee24

View File

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