File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ async def start_async(
161
161
block_for_initial : bool = False ,
162
162
initial_delay_in_ms : float = 0 ,
163
163
skip_initial : bool = False ,
164
- ) -> Callable [[], Coroutine [ Any , Any , None ] ]:
164
+ ) -> Callable [[], None ]:
165
165
self ._listener = listener
166
166
167
167
loop = asyncio .get_running_loop ()
@@ -174,15 +174,14 @@ async def start_async(
174
174
if block_for_initial :
175
175
await init_event .wait ()
176
176
177
- return self .stop_async
177
+ return self .stop
178
178
179
179
def stop (self ):
180
+ if self ._init_timer is not None :
181
+ self ._init_timer .cancel ()
180
182
if self ._next_timer is not None :
181
183
self ._next_timer .cancel ()
182
184
183
- async def stop_async (self ):
184
- return self .stop ()
185
-
186
185
def acquire_token (self , force_refresh = False ) -> TokenResponse :
187
186
try :
188
187
token = self ._idp .request_token (force_refresh )
You can’t perform that action at this time.
0 commit comments