before is_running is true all other methods return a failure

This commit is contained in:
Jack 2016-03-29 22:02:36 -04:00
parent a7fb434f9f
commit 4355b799cb

View file

@ -85,7 +85,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
if functionPath != 'is_running': if functionPath != 'is_running':
request.setHeader("Access-Control-Allow-Origin", "*") request.setHeader("Access-Control-Allow-Origin", "*")
request.setHeader("content-type", "text/json") request.setHeader("content-type", "text/json")
s = jsonrpclib.dumps("Starting up", version=version) s = jsonrpclib.Fault(self.FAILURE, "error")
request.setHeader("content-length", str(len(s))) request.setHeader("content-length", str(len(s)))
request.write(s) request.write(s)
request.finish() request.finish()