stop heartbeat looping call on shutdown
This commit is contained in:
parent
0841aad07a
commit
142281777e
1 changed files with 3 additions and 1 deletions
|
@ -357,6 +357,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
self.version_checker = LoopingCall(self._check_remote_versions)
|
self.version_checker = LoopingCall(self._check_remote_versions)
|
||||||
self.connection_problem_checker = LoopingCall(self._check_connection_problems)
|
self.connection_problem_checker = LoopingCall(self._check_connection_problems)
|
||||||
self.pending_claim_checker = LoopingCall(self._check_pending_claims)
|
self.pending_claim_checker = LoopingCall(self._check_pending_claims)
|
||||||
|
self.send_heartbeat = LoopingCall(self._send_heartbeat)
|
||||||
# self.lbrynet_connection_checker = LoopingCall(self._check_lbrynet_connection)
|
# self.lbrynet_connection_checker = LoopingCall(self._check_lbrynet_connection)
|
||||||
|
|
||||||
self.sd_identifier = StreamDescriptorIdentifier()
|
self.sd_identifier = StreamDescriptorIdentifier()
|
||||||
|
@ -530,7 +531,6 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
|
|
||||||
def _load_analytics_api(self):
|
def _load_analytics_api(self):
|
||||||
self.analytics_api = analytics.Api.load()
|
self.analytics_api = analytics.Api.load()
|
||||||
self.send_heartbeat = LoopingCall(self._send_heartbeat)
|
|
||||||
self.send_heartbeat.start(60)
|
self.send_heartbeat.start(60)
|
||||||
|
|
||||||
def _send_heartbeat(self):
|
def _send_heartbeat(self):
|
||||||
|
@ -801,6 +801,8 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
self.lbry_ui_manager.update_checker.stop()
|
self.lbry_ui_manager.update_checker.stop()
|
||||||
if self.pending_claim_checker.running:
|
if self.pending_claim_checker.running:
|
||||||
self.pending_claim_checker.stop()
|
self.pending_claim_checker.stop()
|
||||||
|
if self.send_heartbeat.running:
|
||||||
|
self.send_heartbeat.stop()
|
||||||
|
|
||||||
self._clean_up_temp_files()
|
self._clean_up_temp_files()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue