[PATCH] First check connecting, then connected state (#952801)

Radek Vykydal rvykydal at redhat.com
Mon May 27 12:33:47 UTC 2013


Prevent a race when NM becomes connected between the two checks.
---
 anaconda | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/anaconda b/anaconda
index ac90d72..6d5c3f6 100755
--- a/anaconda
+++ b/anaconda
@@ -480,7 +480,7 @@ def setupDisplay(anaconda, opts, addon_paths=None):
         flags.vncquestion = False
 
     # disable VNC question if we don't have network
-    if not nm_is_connected() and not nm_is_connecting():
+    if not nm_is_connecting() and not nm_is_connected():
         stdoutLog.warning("Not asking for VNC because we don't have a network")
         flags.vncquestion = False
 
-- 
1.7.11.7



More information about the anaconda-patches mailing list