ignore request if protocol closed

This commit is contained in:
Victor Shyba 2021-10-13 16:01:55 -03:00
parent 1d80ce2419
commit 08a1ad65ab

View file

@ -427,6 +427,8 @@ class RPCSession(SessionBase):
self.schedule_requests(requests)
async def _handle_request(self, request):
if self.is_closing():
return
start = time.perf_counter()
try:
result = await self.handle_request(request)