mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-01 08:25:12 +01:00
fix crash for those with their routers turned off
This commit is contained in:
parent
e7e2bffd17
commit
e42140702a
@ -220,12 +220,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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user