MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / stop_periodic_refresh

Function stop_periodic_refresh

browser_utils/cookie_refresh.py:200–213  ·  view source on GitHub ↗

Stop the periodic cookie refresh background task.

()

Source from the content-addressed store, hash-verified

198
199
200async def stop_periodic_refresh():
201 """
202 Stop the periodic cookie refresh background task.
203 """
204 global _periodic_task
205
206 if _periodic_task is not None and not _periodic_task.done():
207 _periodic_task.cancel()
208 try:
209 await _periodic_task
210 except asyncio.CancelledError:
211 pass
212 _periodic_task = None
213 logger.info("🔄 Periodic cookie refresh stopped")
214
215
216def get_refresh_stats() -> dict:

Callers 1

lifespanFunction · 0.90

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected