Browse Source

Set UI-ready flag sooner.

tags/0.7.0Beta6
ShyPike 13 years ago
parent
commit
11a1ce4a6c
  1. 6
      SABnzbd.py
  2. 1
      sabnzbd/api.py

6
SABnzbd.py

@ -538,7 +538,7 @@ def ipv_localhost(v):
return True
elif v == '6' and ':' in item:
return True
return False
return False
#------------------------------------------------------------------------------
def get_webhost(cherryhost, cherryport, https_port):
@ -549,7 +549,7 @@ def get_webhost(cherryhost, cherryport, https_port):
cherryhost = ''
elif cherryhost == '::' and not ipv_localhost('6'):
cherryhost = ''
if cherryhost is None:
cherryhost = sabnzbd.cfg.cherryhost()
else:
@ -1483,8 +1483,6 @@ def main():
# Wait for server to become ready
cherrypy.engine.wait(cherrypy.process.wspbus.states.STARTED)
sabnzbd.WEBUI_READY = True
if enable_https:
browser_url = "https://%s:%s/sabnzbd" % (browserhost, cherryport)
else:

1
sabnzbd/api.py

@ -1534,6 +1534,7 @@ def clear_trans_cache():
dummy = _SKIN_CACHE
_SKIN_CACHE = {}
del dummy
sabnzbd.WEBUI_READY = True
logging.debug('Cleared translation cache')

Loading…
Cancel
Save