瀏覽代碼

error_handler now runs async methods properly, trying to figure out what's up with joining tasks

digital 8 年之前
父節點
當前提交
10ca828966
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/beewatch/server/__init__.py

+ 1 - 1
lib/beewatch/server/__init__.py

@@ -100,7 +100,7 @@ class ConnHandlerBeeWatch(digilib.network.ConnHandler):
             lch.debug("exec: "+task.exception.__cause__)
             lch.debug("exec: "+task.exception.__cause__)
         # task joins iself to suppress the "task not joined" warning
         # task joins iself to suppress the "task not joined" warning
         cur_task = await curio.current_task()
         cur_task = await curio.current_task()
-        await curio.ignore_after(0,cur_task.wait)
+        await curio.ignore_after(0,cur_task.join)
 
 
     async def respond(self,text,*args,log_msg=False):
     async def respond(self,text,*args,log_msg=False):
         """
         """