mirror of
https://github.com/yulinfeng000/blive.git
synced 2025-03-26 01:00:54 +08:00
update assert code
This commit is contained in:
parent
89bd17ccbd
commit
3ec28742a5
@ -117,11 +117,11 @@ class BLiver:
|
||||
|
||||
@property
|
||||
def ws(self):
|
||||
assert self._ws
|
||||
assert self._ws is not None
|
||||
return self._ws
|
||||
|
||||
async def heartbeat(self):
|
||||
assert self._ws
|
||||
assert self._ws is not None
|
||||
await self._ws.send_bytes(packman.pack(heartbeat(), Operation.HEARTBEAT))
|
||||
self.logger.debug("heartbeat sended")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user