Make sure to initialize _check_token_task in the UA controller
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
parent
c171aac2c7
commit
455e98aab9
|
@ -15,7 +15,9 @@
|
|||
""" Module that defines the client-side controller class for Ubuntu Advantage.
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from subiquitycore.async_helpers import schedule_task
|
||||
|
||||
|
@ -37,6 +39,12 @@ class UbuntuAdvantageController(SubiquityTuiController):
|
|||
|
||||
endpoint_name = "ubuntu_advantage"
|
||||
|
||||
def __init__(self, app) -> None:
|
||||
""" Initializer for the client-side UA controller. """
|
||||
self._check_task: Optional[asyncio.Future] = None
|
||||
|
||||
super().__init__(app)
|
||||
|
||||
async def make_ui(self) -> UbuntuAdvantageView:
|
||||
""" Generate the UI, based on the data provided by the model. """
|
||||
|
||||
|
|
Loading…
Reference in New Issue