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:
calvin 2005-01-29 23:29:45 +00:00
parent e76836a607
commit b698701726

View file

@ -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()