forked from LBRYCommunity/lbry-sdk
ignore request if protocol closed
This commit is contained in:
parent
6ec88e2101
commit
8c605864e7
1 changed files with 2 additions and 0 deletions
|
@ -427,6 +427,8 @@ class RPCSession(SessionBase):
|
||||||
self.schedule_requests(requests)
|
self.schedule_requests(requests)
|
||||||
|
|
||||||
async def _handle_request(self, request):
|
async def _handle_request(self, request):
|
||||||
|
if self.is_closing():
|
||||||
|
return
|
||||||
start = time.perf_counter()
|
start = time.perf_counter()
|
||||||
try:
|
try:
|
||||||
result = await self.handle_request(request)
|
result = await self.handle_request(request)
|
||||||
|
|
Loading…
Add table
Reference in a new issue