From 05d875c2652051ae8c7ed4ba6680c2bc925e5a91 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 3 Feb 2011 03:35:21 +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 36cf128..4d309c0 100644 --- a/source/networkop.cpp +++ b/source/networkop.cpp @@ -264,16 +264,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; @@ -299,7 +300,7 @@ bool InitializeNetwork(bool silent) CancelAction(); - if(networkInit) + if(networkInit || silent) break; retry = ErrorPromptRetry("Unable to initialize network!");