Fix asyncio sleep

This commit is contained in:
2024-09-20 13:21:20 +02:00
parent 62bb650b37
commit e3ad25b95e
+2 -2
View File
@@ -1,6 +1,6 @@
import logging
import wave
import asyncio
import assemblyai as aai
import discord
from discord.ext import commands, voice_recv, tasks
@@ -131,7 +131,7 @@ class TranscriptionOutput(commands.Cog):
@tasks.loop()
async def scan_loop(self):
while self.work:
time.sleep(1.0)
asyncio.sleep(1.0)
logger.info("Output scan loop exited succesfully")
class Transcriber(commands.Cog):