Parcourir la source

trying out wait and join

digital il y a 7 ans
Parent
commit
4b55a9ee03
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      network/__init__.py

+ 1 - 1
network/__init__.py

@@ -420,7 +420,7 @@ class Server(object):
         # stopped or crashed
         # maybe wait doesn't work, trying it out with join
         cur_task = await curio.current_task()
-        await curio.ignore_after(0.01,cur_task.join)
+        await curio.ignore_after(0.01,cur_task.wait)
 
 class Client(threading.Thread):
     """docstring for Client"""