mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 10:39:18 +01:00
net changes
This commit is contained in:
parent
b69c51b8cf
commit
05d875c265
@ -264,16 +264,17 @@ void StopNetworkThread()
|
||||
|
||||
bool InitializeNetwork(bool silent)
|
||||
{
|
||||
if(networkInit)
|
||||
{
|
||||
#ifdef HW_RVL
|
||||
StopNetworkThread();
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
if(silent)
|
||||
return false;
|
||||
if(networkInit && net_gethostip() > 0)
|
||||
return true;
|
||||
|
||||
networkInit = false;
|
||||
#else
|
||||
if(networkInit)
|
||||
return true;
|
||||
#endif
|
||||
|
||||
int retry = 1;
|
||||
|
||||
@ -299,7 +300,7 @@ bool InitializeNetwork(bool silent)
|
||||
|
||||
CancelAction();
|
||||
|
||||
if(networkInit)
|
||||
if(networkInit || silent)
|
||||
break;
|
||||
|
||||
retry = ErrorPromptRetry("Unable to initialize network!");
|
||||
|
Loading…
Reference in New Issue
Block a user