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

[tor-commits] [ooni-probe/master] Fix bug inside of resume functionality



commit 84bf20fac3ba1f5f77223142e1552a8efdc15b8e
Author: Arturo Filastò <art@xxxxxxxxxx>
Date:   Thu Jun 14 01:23:58 2012 +0200

    Fix bug inside of resume functionality
---
 ooni/ooniprobe.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ooni/ooniprobe.py b/ooni/ooniprobe.py
index a997041..662956a 100755
--- a/ooni/ooniprobe.py
+++ b/ooni/ooniprobe.py
@@ -63,11 +63,14 @@ def runTest(test, options, global_options):
     report = reports.Report(test, global_options['output'])
 
     log.start(global_options['log'], 1)
+    resume = 0
+    if 'resume' in options:
+        resume = options['resume']
 
     wgen = work.WorkGenerator(test_class(options, global_options, report,
                                          reactor=reactor),
                               dict(options),
-                              start=options['resume'])
+                              start=resume)
 
     for x in wgen:
         worker.push(x)



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