mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
cosmetic change
This commit is contained in:
parent
5edf41f2e0
commit
be6aab538d
1 changed files with 8 additions and 3 deletions
|
@ -256,15 +256,20 @@ class Interface(threading.Thread):
|
||||||
try:
|
try:
|
||||||
out = ''
|
out = ''
|
||||||
while self.is_connected:
|
while self.is_connected:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
timeout = False
|
||||||
msg = self.s.recv(1024)
|
msg = self.s.recv(1024)
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
|
timeout = True
|
||||||
|
except ssl.SSLError:
|
||||||
|
timeout = True
|
||||||
|
|
||||||
|
if timeout:
|
||||||
# ping the server with server.version, as a real ping does not exist yet
|
# ping the server with server.version, as a real ping does not exist yet
|
||||||
self.send([('server.version', [ELECTRUM_VERSION])])
|
self.send([('server.version', [ELECTRUM_VERSION])])
|
||||||
continue
|
continue
|
||||||
except ssl.SSLError:
|
|
||||||
self.send([('server.version', [ELECTRUM_VERSION])])
|
|
||||||
continue
|
|
||||||
out += msg
|
out += msg
|
||||||
self.bytes_received += len(msg)
|
self.bytes_received += len(msg)
|
||||||
if msg == '':
|
if msg == '':
|
||||||
|
|
Loading…
Add table
Reference in a new issue