From c6badab18ec9a22e99bc7e4d04f8f42ac10d1137 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 24 Jul 2019 14:35:18 -0500 Subject: [PATCH] progress in removing core --- onionr/apiservers/private/__init__.py | 2 +- onionr/communicatorutils/onionrcommunicatortimers.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/onionr/apiservers/private/__init__.py b/onionr/apiservers/private/__init__.py index d65b194c..2683ed6d 100644 --- a/onionr/apiservers/private/__init__.py +++ b/onionr/apiservers/private/__init__.py @@ -55,10 +55,10 @@ class PrivateAPI: self.host = httpapi.apiutils.setbindip.set_bind_IP(filepaths.private_API_host_file) logger.info('Running api on %s:%s' % (self.host, self.bindPort)) self.httpServer = '' + onionrInst.setClientAPIInst(self) self.queueResponse = {} self.get_block_data = httpapi.apiutils.GetBlockData(self) - onionrInst.setClientAPIInst(self) register_private_blueprints.register_private_blueprints(self, app) httpapi.load_plugin_blueprints(app) self.onionrInst = onionrInst diff --git a/onionr/communicatorutils/onionrcommunicatortimers.py b/onionr/communicatorutils/onionrcommunicatortimers.py index a6b8c408..b0fac130 100755 --- a/onionr/communicatorutils/onionrcommunicatortimers.py +++ b/onionr/communicatorutils/onionrcommunicatortimers.py @@ -51,7 +51,8 @@ class OnionrCommunicatorTimers: if self.makeThread: for i in range(self.threadAmount): if self.daemonInstance.threadCounts[self.timerFunction.__name__] >= self.maxThreads: - logger.debug('%s is currently using the maximum number of threads, not starting another.' % self.timerFunction.__name__, terminal=True) + pass + #logger.debug('%s is currently using the maximum number of threads, not starting another.' % self.timerFunction.__name__, terminal=True) else: self.daemonInstance.threadCounts[self.timerFunction.__name__] += 1 newThread = threading.Thread(target=self.timerFunction, args=self.args, daemon=True)