summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnc.py b/vnc.py
index d4d55146a..1fdd8c680 100644
--- a/vnc.py
+++ b/vnc.py
@@ -14,6 +14,7 @@
#
import os, sys, string
+import time
from snack import *
from constants_text import *
from rhpl.translate import _, N_
@@ -290,7 +291,7 @@ def startVNCServer(vncpassword="", root='/', vncconnecthost="",
if output == "":
stdoutLog.info(_("Connected!"))
break
- elif output.startswith("connecting") and output.endswith("failed"):
+ elif output.startswith("connecting") and output.endswith("failed\n"):
ntries += 1
if ntries > 50:
stdoutLog.error(_("Giving up attempting to connect after 50 tries!\n"))