mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
rename process_response
This commit is contained in:
parent
603caf228f
commit
9a07c1cb44
1 changed files with 4 additions and 4 deletions
|
@ -94,7 +94,7 @@ class Interface(threading.Thread):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def queue_json_response(self, c):
|
def process_response(self, c):
|
||||||
|
|
||||||
# uncomment to debug
|
# uncomment to debug
|
||||||
if self.debug:
|
if self.debug:
|
||||||
|
@ -242,10 +242,10 @@ class Interface(threading.Thread):
|
||||||
if response:
|
if response:
|
||||||
response = json.loads( response )
|
response = json.loads( response )
|
||||||
if type(response) is not type([]):
|
if type(response) is not type([]):
|
||||||
self.queue_json_response(response)
|
self.process_response(response)
|
||||||
else:
|
else:
|
||||||
for item in response:
|
for item in response:
|
||||||
self.queue_json_response(item)
|
self.process_response(item)
|
||||||
|
|
||||||
if response:
|
if response:
|
||||||
self.poll_interval = 1
|
self.poll_interval = 1
|
||||||
|
@ -428,7 +428,7 @@ class Interface(threading.Thread):
|
||||||
c = out[0:s]
|
c = out[0:s]
|
||||||
out = out[s+1:]
|
out = out[s+1:]
|
||||||
c = json.loads(c)
|
c = json.loads(c)
|
||||||
self.queue_json_response(c)
|
self.process_response(c)
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
|
|
Loading…
Add table
Reference in a new issue