if lbrycrd server fails to launch, don't stop it at shutdown

This commit is contained in:
Jimmy Kiselak 2015-09-09 12:17:46 -04:00
parent bb5cd49327
commit ff5b6c4eab

View file

@ -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()