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,6 +405,9 @@ class LBRYcrdWallet(object):
|
|||
|
||||
@_catch_connection_error
|
||||
def _rpc_stop(self):
|
||||
# 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()
|
||||
|
|
Loading…
Reference in a new issue