Skip to content

Commit

Permalink
🐛fix launart 0.6.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueGlassBlock committed Jan 3, 2023
1 parent 27d5c90 commit 53a79e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 未发布的更新

### 修复

修复了 `Launart 0.6.2` 兼容性。([#209](https://github.com/GraiaProject/Ariadne/issues/209))

## 0.10.2

### 修复
Expand Down
16 changes: 8 additions & 8 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"typing-extensions>=4.4,<5.0",
"graia-amnesia~=0.7.0",
"creart-graia<1.0.0,>=0.1.5",
"launart~=0.6",
"launart>=0.6.2,<1.0.0",
]
name = "graia-ariadne"
description = "Another elegant Python QQ Bot framework for mirai and mirai-api-http v2."
Expand Down
5 changes: 3 additions & 2 deletions src/graia/ariadne/connection/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ def stages(self):

async def launch(self, mgr: Launart) -> None:
self.http_interface = mgr.get_interface(AiohttpClientInterface)
if self.is_hook:
exit_signal = asyncio.create_task(mgr.status.wait_for_sigexit())
if self.is_hook: # FIXME
await exit_signal
return
async with self.stage("blocking"):
exit_signal = asyncio.create_task(mgr.status.wait_for_sigexit())
while not exit_signal.done():
try:
if not self.status.session_key:
Expand Down

0 comments on commit 53a79e2

Please sign in to comment.