This commit is contained in:
dborth 2011-03-13 05:49:30 +00:00
parent d8cb3daab0
commit f7435be91b

View File

@ -180,7 +180,7 @@ static void * netcb (void *arg)
s32 res=-1;
int retry;
int wait;
static bool first=true;
static bool prevInit = false;
while(netHalt != 2)
{
@ -188,7 +188,7 @@ static void * netcb (void *arg)
while (retry>0 && (netHalt != 2))
{
if(!first)
if(prevInit)
{
bool reset=false;
int i;
@ -210,7 +210,7 @@ static void * netcb (void *arg)
continue;
}
}
first=false;
net_deinit();
usleep(2000);
res = net_init_async(NULL, NULL);
@ -243,6 +243,7 @@ static void * netcb (void *arg)
{
strcpy(wiiIP, inet_ntoa(hostip));
networkInit = true;
prevInit = true;
}
}
if(netHalt != 2) LWP_SuspendThread(networkthread);