diff --git a/linkcheck/director/status.py b/linkcheck/director/status.py index 92b3f85c..e1fc30e4 100644 --- a/linkcheck/director/status.py +++ b/linkcheck/director/status.py @@ -70,7 +70,6 @@ def print_app_info (): # lock for status thread _status_lock = threading.Lock() status_flag = True -finished = threading.Condition(_status_lock) @synchronized(_status_lock) def status_is_active (): @@ -82,16 +81,6 @@ def disable_status (): status_flag = False -@synchronized(finished) -def join (): - finished.wait() - - -@synchronized(finished) -def finish (): - finished.notify() - - def do_status (urlqueue): start_time = time.time() threading.currentThread().setName("Status") @@ -99,7 +88,7 @@ def do_status (urlqueue): for dummy in xrange(5): time.sleep(1) if not status_is_active(): - return finish() + return print_status(urlqueue, start_time)