[tor-commits] [pytorctl/master] Bug #4097: Clear old last_exit before requesting a new one

mikeperry at torproject.org mikeperry at torproject.org
Wed Oct 19 23:36:04 UTC 2011


commit e15ed99df8e8e04cadd0f3792e42a621df6fbe02
Author: Mike Perry <mikeperry-git at fscked.org>
Date:   Wed Oct 19 16:32:34 2011 -0700

    Bug #4097: Clear old last_exit before requesting a new one
    
    Should eliminate the keyerror in the test's node_map, which seemed to be due
    to really stale last_exits laying around from previous tests on a different
    consensus.
---
 ScanSupport.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ScanSupport.py b/ScanSupport.py
index 8985fd7..e6752c5 100644
--- a/ScanSupport.py
+++ b/ScanSupport.py
@@ -164,6 +164,8 @@ class ScanHandler(PathSupport.PathBuilder):
     def notlambda(sm):
       plog("DEBUG", "Job for setexit: "+exit_name)
       cond.acquire()
+      # Clear last successful exit, we're running a new test
+      self.last_exit = None
       sm.set_exit(exit_name)
       cond.notify()
       cond.release()



More information about the tor-commits mailing list