Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
thesadru committed Sep 12, 2024
1 parent 03f727a commit a84e83b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arkprts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ def __init__(
self.upcoming_auth = list(cache)

if self.cache_path:
self.cache_path.parent.mkdir(parents=True, exist_ok=True)
self.upcoming_auth.extend(self._load_cache())

def _load_cache(self) -> typing.Sequence[RawAuthMapping]:
Expand Down

0 comments on commit a84e83b

Please sign in to comment.