浏览代码

trying out wait and join

digital 7 年之前
父节点
当前提交
4b55a9ee03
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"""