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