mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
fixup! pylightning: RPC returns a failure if the connection is lost
This commit is contained in:
parent
225f29abf4
commit
5028f7b9d9
@ -198,7 +198,10 @@ class LightningNode(object):
|
||||
tx = self.bitcoin.rpc.gettransaction(txid)
|
||||
|
||||
def call_connect():
|
||||
self.rpc.connect('127.0.0.1', remote_node.daemon.port, tx['hex'], async=False)
|
||||
try:
|
||||
self.rpc.connect('127.0.0.1', remote_node.daemon.port, tx['hex'], async=False)
|
||||
except:
|
||||
pass
|
||||
t = threading.Thread(target=call_connect)
|
||||
t.daemon = True
|
||||
t.start()
|
||||
|
Loading…
Reference in New Issue
Block a user