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