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