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