Kaynağa Gözat

trying out wait and join

digital 7 yıl önce
ebeveyn
işleme
4b55a9ee03
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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"""