From 409482fab51a61949bb5a81bbeb7b64b07d5de95 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 3 Feb 2011 03:35:09 +0000 Subject: [PATCH] net changes --- source/networkop.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/source/networkop.cpp b/source/networkop.cpp index d0c0547..cb31099 100644 --- a/source/networkop.cpp +++ b/source/networkop.cpp @@ -266,16 +266,17 @@ void StopNetworkThread() bool InitializeNetwork(bool silent) { - if(networkInit) - { #ifdef HW_RVL - StopNetworkThread(); -#endif - return true; - } + StopNetworkThread(); - if(silent) - return false; + if(networkInit && net_gethostip() > 0) + return true; + + networkInit = false; +#else + if(networkInit) + return true; +#endif int retry = 1; @@ -301,7 +302,7 @@ bool InitializeNetwork(bool silent) CancelAction(); - if(networkInit) + if(networkInit || silent) break; retry = ErrorPromptRetry("Unable to initialize network!");