Browse files

Added 1-second wait when initializing only the JTD server

  • Loading branch information...
1 parent c5b342d commit 5ec331d02205cb6481356cbe4b6bd78f6004533b @eromba committed Oct 13, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 jtd-android-init.py
View
4 jtd-android-init.py
@@ -125,8 +125,12 @@ def AndroidBrowserIsCaptured():
else:
subprocess.Popen(["xterm", "-e", "java", "-jar", JTD_PATH, "--port", JTD_PORT])
print("JsTestDriver started")
+ if numArgs == 3:
+ print("Waiting 1 second for the server to start...")
+ time.sleep(1)
if numArgs == 3:
+ print("\nInitialization complete")
exit(0)

0 comments on commit 5ec331d

Please sign in to comment.