Browse Source

fix SocketPipe for returning empty array

283
ThomasV 9 years ago
parent
commit
e3b7239d19
  1. 1
      electrum
  2. 2
      lib/util.py

1
electrum

@ -510,6 +510,7 @@ if __name__ == '__main__':
s = get_daemon(config, False)
if s:
p = util.SocketPipe(s)
p.set_timeout(False)
p.send(config_options)
result = p.get()
s.close()

2
lib/util.py

@ -392,7 +392,7 @@ class SocketPipe:
def get(self):
while True:
response, self.message = parse_json(self.message)
if response:
if response is not None:
return response
try:
data = self.socket.recv(1024)

Loading…
Cancel
Save