mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 12:54:42 +00:00
return 'busy' on busy connections
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2223 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
7e0c34a3d9
commit
639aeb294a
1 changed files with 2 additions and 1 deletions
|
|
@ -227,9 +227,10 @@ class Cache (object):
|
|||
conn_and_status = self.ftp_connections[key]
|
||||
if conn_and_status[1] == 'busy':
|
||||
# connection is in use
|
||||
return None
|
||||
return "busy"
|
||||
conn_and_status[1] = 'busy'
|
||||
return conn_and_status[0]
|
||||
return None
|
||||
finally:
|
||||
self.lock.release()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue