Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lc4t committed Apr 10, 2020
1 parent 30f1496 commit 835840a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions danmu/bili_abc/bili_danmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ async def _one_read(self) -> bool:
if ver == 2 and opt == Opt.SEND_MSG_REPLY: # v2 协议有混合,可能不成熟吧
packs = zlib.decompress(body)
for opt, body in Pack.unpack(packs):
if not self.parse_body(body, opt):
if not await self.parse_body(body, opt):
return False
return True
else:
return self.parse_body(body, opt)
return await self.parse_body(body, opt)

def parse_body(self, body: bytes, opt: int) -> bool:
async def parse_body(self, body: bytes, opt: int) -> bool:
# 人气值(或者在线人数或者类似)以及心跳
if opt == Opt.HEARTBEAT_REPLY:
pass
Expand Down

0 comments on commit 835840a

Please sign in to comment.