ignore request if protocol closed
This commit is contained in:
parent
1d80ce2419
commit
08a1ad65ab
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue