Explorar o código

trying out wait and join

digital %!s(int64=7) %!d(string=hai) anos
pai
achega
2615e29f83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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__)
         # task joins iself to suppress the "task not joined" warning
         cur_task = await curio.current_task()
-        await curio.ignore_after(0,cur_task.join)
+        await curio.ignore_after(0,cur_task.wait)
 
     async def respond(self,text,*args,log_msg=False):
         """