def get_check_hashes(self): self.dllock.acquire() try: return DownloadConfigInterface.get_check_hashes(self) finally: self.dllock.release()