From 59cc7709d986371bd26a68e268a556c807e5de26 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 15 Mar 2019 00:30:43 -0500 Subject: [PATCH] fs adjustments --- onionr/communicator.py | 2 +- onionr/onionrusers/onionrusers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index 263328f4..27753022 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -116,7 +116,7 @@ class OnionrCommunicatorDaemon: else: logger.debug('Will not announce node.') cleanupTimer = OnionrCommunicatorTimers(self, self.peerCleanup, 300, requiresPeer=True) - forwardSecrecyTimer = OnionrCommunicatorTimers(self, self.daemonTools.cleanKeys, 15) + forwardSecrecyTimer = OnionrCommunicatorTimers(self, self.daemonTools.cleanKeys, 15, maxThreads=1) # set loop to execute instantly to load up peer pool (replaced old pool init wait) peerPoolTimer.count = (peerPoolTimer.frequency - 1) diff --git a/onionr/onionrusers/onionrusers.py b/onionr/onionrusers/onionrusers.py index 4429cd18..5c85e079 100755 --- a/onionr/onionrusers/onionrusers.py +++ b/onionr/onionrusers/onionrusers.py @@ -111,6 +111,7 @@ class OnionrUser: return (retData, forwardKey[0], forwardKey[1]) def forwardDecrypt(self, encrypted): + deleteExpiredKeys(self._core) retData = "" for key in self.getGeneratedForwardKeys(False): try: