fix crash for those with their routers turned off

This commit is contained in:
dborth 2010-08-23 18:59:07 +00:00
parent 7db249df28
commit 9dadc743d1

View File

@ -221,12 +221,13 @@ static void * netcb (void *arg)
if (res == 0) if (res == 0)
{ {
networkInit = true;
struct in_addr hostip; struct in_addr hostip;
hostip.s_addr = net_gethostip(); hostip.s_addr = net_gethostip();
if (hostip.s_addr) if (hostip.s_addr)
{
strcpy(wiiIP, inet_ntoa(hostip)); strcpy(wiiIP, inet_ntoa(hostip));
networkInit = true;
}
} }
LWP_SuspendThread(networkthread); LWP_SuspendThread(networkthread);
} }