Skip to content

Commit d0674fe

Browse files
committed
Fix save_tokens not saving if load_tokens is False
1 parent 344a9cd commit d0674fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

twitchio/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ async def login(self, *, token: str | None = None, load_tokens: bool = True, sav
432432
if load_tokens:
433433
async with self._http._token_lock:
434434
await self.load_tokens()
435+
else:
436+
self._http._has_loaded = True
435437

436438
if self._bot_id:
437439
logger.debug("Fetching Clients self user for %r", self.__class__.__name__)

0 commit comments

Comments
 (0)