[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 8400b655e160c8b17b03a93047e00834b222f95b
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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()

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits