Changeset 196e42d8880e…
Parent 8ca560af823d…
by
Changes to one file · Browse files at 196e42d8880e Showing diff from parent 8ca560af823d Diff from another changeset...
@@ -238,8 +238,13 @@ thread = threading.Thread(target=threadfunc, args=args)
thread.start()
- while not gservice or not hasattr(gservice, 'httpd'):
+ while True:
time.sleep(0.1)
+ if gservice and hasattr(gservice, 'httpd'):
+ break
+ if not thread.isAlive():
+ return
+
# gservice.httpd.fqaddr turned out to be unreliable, so use
# loopback addr directly
self._url = 'http://127.0.0.1:%d/' % (port)
|
Loading...