From 90d7e06b7d4082d81a0cad4cac3e9ea0032bb81e Mon Sep 17 00:00:00 2001 From: Taku Fukada Date: Sun, 8 Jul 2018 14:09:19 +0900 Subject: [PATCH] Revert "Fix Server to wait in wait_closed() until all transports are done" (#180) This reverts commit 124e981bc90fbe2814dd1efd051e5b5a394cf1df. --- uvloop/server.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uvloop/server.pyx b/uvloop/server.pyx index fb4c4691..34a23ff0 100644 --- a/uvloop/server.pyx +++ b/uvloop/server.pyx @@ -44,7 +44,7 @@ cdef class Server: @cython.iterable_coroutine async def wait_closed(self): - if self._waiters is None: + if self._servers is None or self._waiters is None: return waiter = self._loop._new_future() self._waiters.append(waiter)