mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-15 10:03:10 +00:00
remove unused condition
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3289 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
49a21901f9
commit
7a94995345
1 changed files with 1 additions and 12 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue