From 7a9499534558142aa271be5e51700f6e97734f82 Mon Sep 17 00:00:00 2001 From: calvin Date: Tue, 23 May 2006 19:51:22 +0000 Subject: [PATCH] remove unused condition git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3289 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/director/status.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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)