[tor-commits] [arm/master] IOError when stopping tor

atagar at torproject.org atagar at torproject.org
Sat Jan 19 21:53:24 UTC 2013


commit 8400b655e160c8b17b03a93047e00834b222f95b
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Jan 19 13:52:50 2013 -0800

    IOError when stopping tor
    
    Yet another bug spotted by gsathya...
    
    https://trac.torproject.org/7991
---
 src/util/torTools.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/torTools.py b/src/util/torTools.py
index f38a8ab..31dace4 100644
--- a/src/util/torTools.py
+++ b/src/util/torTools.py
@@ -1137,9 +1137,9 @@ class Controller:
         isRelay = self.getOption("ORPort", None) != None
         
         if force:
-          stem.controller.signal(stem.Signal.HALT)
+          self.controller.signal(stem.Signal.HALT)
         else:
-          stem.controller.signal(stem.Signal.SHUTDOWN)
+          self.controller.signal(stem.Signal.SHUTDOWN)
         
         # shuts down control connection if we aren't making a delayed shutdown
         if force or not isRelay: self.close()



More information about the tor-commits mailing list