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

[tor-commits] [sbws/master] scanner: Stop threads in a test network



commit 689ce5abd177a45235cb020d4f108f78535d3e93
Author: juga0 <juga@xxxxxxxxxx>
Date:   Sat Feb 23 11:30:02 2019 +0000

    scanner: Stop threads in a test network
    
    after finishing the first loop.
    As noted in bug28933_01.
---
 sbws/core/scanner.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index b486dd9..78cc165 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -480,7 +480,8 @@ def main_loop(args, conf, controller, relay_list, circuit_builder, result_dump,
         if controller.get_conf('TestingTorNetwork') == '1':
             log.info("In a testing network, exiting after the first loop.")
             # Threads should be closed nicely in some refactor
-            exit(0)
+            stop_threads(signal.SIGTERM, None)
+
 
 def run_speedtest(args, conf):
     """Initializes all the data and threads needed to measure the relays.



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