Skip to content

Commit

Permalink
回滚上一次提交 (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jun 26, 2024
1 parent 99e713a commit 5380538
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/lol/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ class LolClientConnector(QObject):

def __init__(self):
super().__init__()
maxRefCnt = cfg.get(cfg.apiConcurrencyNumber)
self.maxRefCnt = cfg.get(cfg.apiConcurrencyNumber)

self.semaphore = asyncio.Semaphore(maxRefCnt)
self.semaphore = None
self.lcuSess = None
self.sgpSess = None
self.port = None
Expand All @@ -220,6 +220,7 @@ def __init__(self):
async def start(self, pid):
self.pid = pid
self.port, self.token, self.server = getPortTokenServerByPid(pid)
self.semaphore = asyncio.Semaphore(self.maxRefCnt)

await self.__initSessions()
self.__initPlatformInfo()
Expand Down

0 comments on commit 5380538

Please sign in to comment.