From 50e6537e8092efe9d78a85b9bcccc4746978544b Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 27 Jan 2018 03:06:08 -0600 Subject: [PATCH] tor now exits properly on STOP command --- onionr/netcontroller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onionr/netcontroller.py b/onionr/netcontroller.py index a2aa905d..ccb6545a 100644 --- a/onionr/netcontroller.py +++ b/onionr/netcontroller.py @@ -72,6 +72,7 @@ HiddenServicePort 80 127.0.0.1:''' + str(self.hsPort) + ''' torPidFile.close() return def killTor(self): + '''properly kill tor based on pid saved to file''' try: pid = open('data/torPid.txt', 'r') pidN = pid.read()