fix: no yield
This commit is contained in:
+2
-2
@@ -32,11 +32,11 @@ class TimerService:
|
||||
if not Second is None:
|
||||
self.timer(event,Second)
|
||||
|
||||
yield
|
||||
|
||||
|
||||
# 定时:
|
||||
def timer(self,event:AstrMessageEvent,Sec:int):
|
||||
asyncio.create_task(self.timer_task())
|
||||
asyncio.create_task(self.timer_task())
|
||||
|
||||
async def timer_task(self):
|
||||
await asyncio.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user