From fa0293faf3bf562eaea5e648707c0d88a2857b50 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Fri, 11 Feb 2022 20:53:19 +0100 Subject: [PATCH] Explicitly set stream to none here --- channel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/channel.py b/channel.py index d481d00..1f30d2b 100644 --- a/channel.py +++ b/channel.py @@ -246,11 +246,10 @@ class Channel: return Stream.from_get_stream(self, stream_data) async def check_online(self) -> bool: - stream = await self.get_stream() + self._stream = stream = await self.get_stream() if stream is None: invalidate_cache(self, "_payload") return False - self._stream = stream return True async def _online_delay(self):