mirror of
https://github.com/yulinfeng000/blive.git
synced 2026-08-19 08:43:28 +08:00
update assert code
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user