ignore request if protocol closed

This commit is contained in:
Victor Shyba 2021-10-13 16:01:55 -03:00 committed by Jack Robison
parent 6ec88e2101
commit 8c605864e7
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

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)