mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 23:24:44 +00:00
only release cached FTP connections
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2243 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
e76836a607
commit
b698701726
1 changed files with 2 additions and 1 deletions
|
|
@ -264,7 +264,8 @@ class Cache (object):
|
|||
self.lock.acquire()
|
||||
try:
|
||||
key = (host, username, password)
|
||||
self.ftp_connections[key][1] = 'available'
|
||||
if key in self.ftp_connections:
|
||||
self.ftp_connections[key][1] = 'available'
|
||||
finally:
|
||||
self.lock.release()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue