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