Fix missing shielding

pull/20805/head
Lidi Zheng 5 years ago
parent 9289d34df0
commit 9aeefc3691
  1. 2
      src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi

@ -410,7 +410,7 @@ cdef class AioServer:
await self._shutdown_completed
else:
try:
await asyncio.wait_for(self._shutdown_completed, timeout)
await asyncio.wait_for(asyncio.shield(self._shutdown_completed), timeout)
except asyncio.TimeoutError:
if self._crash_exception is not None:
raise self._crash_exception

Loading…
Cancel
Save