Fix a potential issue with stream state not refreshing the watching payload
This commit is contained in:
1 parent
d566508ed9
commit
b20893ab03
1 file changed
+6
-1
+6
-1
@@ -62,6 +62,11 @@ class Stream:
|
|||||||
tags=data["tags"],
|
tags=data["tags"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def __eq__(self, other: object) -> bool:
|
||||||
|
if isinstance(other, self.__class__):
|
||||||
|
return self.broadcast_id == other.broadcast_id
|
||||||
|
return NotImplemented
|
||||||
|
|
||||||
|
|
||||||
class Channel:
|
class Channel:
|
||||||
def __init__(
|
def __init__(
|
||||||
@@ -245,8 +250,8 @@ class Channel:
|
|||||||
|
|
||||||
async def check_online(self) -> bool:
|
async def check_online(self) -> bool:
|
||||||
self._stream = await self.get_stream()
|
self._stream = await self.get_stream()
|
||||||
if self._stream is None:
|
|
||||||
invalidate_cache(self, "_payload")
|
invalidate_cache(self, "_payload")
|
||||||
|
if self._stream is None:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user