From aa51a2fea624b742dc30e420dc9a6ffda0225476 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 18 Dec 2019 04:06:52 -0600 Subject: [PATCH] var for netCheckTimer and commented code removal --- src/communicator/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/communicator/__init__.py b/src/communicator/__init__.py index d05a8e98..072bda84 100755 --- a/src/communicator/__init__.py +++ b/src/communicator/__init__.py @@ -173,7 +173,8 @@ class OnionrCommunicatorDaemon: deniableBlockTimer.count = (deniableBlockTimer.frequency - 175) # Timer to check for connectivity, through Tor to various high-profile onion services - netCheckTimer = OnionrCommunicatorTimers(self, netcheck.net_check, 500, my_args=[self], max_threads=1) + OnionrCommunicatorTimers(self, netcheck.net_check, 500, + my_args=[self], max_threads=1) # Announce the public API server transport address to other nodes if security level allows if config.get('general.security_level', 1) == 0 and config.get('general.announce_node', True): @@ -214,9 +215,6 @@ class OnionrCommunicatorDaemon: break i.processTimer() time.sleep(self.delay) - # Debug to print out used FDs (regular and net) - #proc = psutil.Process() - #print(proc.open_files(), len(psutil.net_connections())) except KeyboardInterrupt: self.shutdown = True pass