mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Streams] Stop suppressing task cancelation in _stream_alerts() (#4940)
* Minimize the API calls * Address Jack's review. * [Streams] Actually cancel the _stream_alerts task.
This commit is contained in:
parent
07099dd1dd
commit
a6d15dc385
@ -715,10 +715,7 @@ class Streams(commands.Cog):
|
|||||||
async def _stream_alerts(self):
|
async def _stream_alerts(self):
|
||||||
await self.bot.wait_until_ready()
|
await self.bot.wait_until_ready()
|
||||||
while True:
|
while True:
|
||||||
try:
|
|
||||||
await self.check_streams()
|
await self.check_streams()
|
||||||
except asyncio.CancelledError:
|
|
||||||
pass
|
|
||||||
await asyncio.sleep(await self.config.refresh_timer())
|
await asyncio.sleep(await self.config.refresh_timer())
|
||||||
|
|
||||||
async def _send_stream_alert(
|
async def _send_stream_alert(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user