From 8a7c6eee245a3ee88ba519d9aa0e19157a37d1dd Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 10 Jan 2010 17:23:27 +0000 Subject: [PATCH] Try getting DHCP twice --- Src/NetworkWii.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Src/NetworkWii.h b/Src/NetworkWii.h index 98ad854..7e003c7 100644 --- a/Src/NetworkWii.h +++ b/Src/NetworkWii.h @@ -90,11 +90,10 @@ void Network::InitNetwork() { char myIP[16]; - if (if_config(myIP, NULL, NULL, true) < 0) - { - fprintf(stderr, "\n\n\nError getting IP address via DHCP.\n"); - sleep(2); - exit(1); + /* Try twice */ + if (if_config(myIP, NULL, NULL, true) < 0) { + if (if_config(myIP, NULL, NULL, true) < 0) + TheC64->TheDisplay->display_status_string((char*)"NO DHCP ANSWER", 1); } }