forked from LBRYCommunity/lbry-sdk
if lbrycrd server fails to launch, don't stop it at shutdown
This commit is contained in:
parent
bb5cd49327
commit
ff5b6c4eab
1 changed files with 6 additions and 3 deletions
|
@ -405,9 +405,12 @@ class LBRYcrdWallet(object):
|
|||
|
||||
@_catch_connection_error
|
||||
def _rpc_stop(self):
|
||||
rpc_conn = self._get_rpc_conn()
|
||||
rpc_conn.stop()
|
||||
self.lbrycrdd.wait()
|
||||
# check if our lbrycrdd is actually running, or if we connected to one that was already
|
||||
# running and ours failed to start
|
||||
if self.lbrycrdd.poll() is None:
|
||||
rpc_conn = self._get_rpc_conn()
|
||||
rpc_conn.stop()
|
||||
self.lbrycrdd.wait()
|
||||
|
||||
|
||||
class LBRYcrdAddressRequester(object):
|
||||
|
|
Loading…
Reference in a new issue