just fixes
This commit is contained in:
parent
4d5381819f
commit
39beaee68b
1 changed files with 2 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
"""
|
"""
|
||||||
A JSON-RPC backend using HTTP.
|
The Linspector JSON-RPC backend.
|
||||||
|
|
||||||
Uses: http://deavid.github.io/bjsonrpc/
|
Uses: http://deavid.github.io/bjsonrpc/
|
||||||
|
|
||||||
|
|
@ -44,8 +44,7 @@ class JsonrpcBackend(Backend):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
s = createserver(host=self.host, port=self.port, handler_factory=ServerHandler)
|
server = createserver(host=self.host, port=self.port, handler_factory=ServerHandler).serve()
|
||||||
s.serve()
|
|
||||||
|
|
||||||
|
|
||||||
class ServerHandler(BaseHandler):
|
class ServerHandler(BaseHandler):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue