Explicitly set stream to none here
This commit is contained in:
1 parent
f41146ebdd
commit
fa0293faf3
1 file changed
+1
-2
+1
-2
@@ -246,11 +246,10 @@ class Channel:
|
|||||||
return Stream.from_get_stream(self, stream_data)
|
return Stream.from_get_stream(self, stream_data)
|
||||||
|
|
||||||
async def check_online(self) -> bool:
|
async def check_online(self) -> bool:
|
||||||
stream = await self.get_stream()
|
self._stream = stream = await self.get_stream()
|
||||||
if stream is None:
|
if stream is None:
|
||||||
invalidate_cache(self, "_payload")
|
invalidate_cache(self, "_payload")
|
||||||
return False
|
return False
|
||||||
self._stream = stream
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
async def _online_delay(self):
|
async def _online_delay(self):
|
||||||
|
|||||||
Reference in new issue
Block a user