From 8c605864e79d0c93d4e7f22f019af24da8f6bfac Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 13 Oct 2021 16:01:55 -0300 Subject: [PATCH] ignore request if protocol closed --- lbry/wallet/rpc/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbry/wallet/rpc/session.py b/lbry/wallet/rpc/session.py index 8b04c1ac2..d76c7cf29 100644 --- a/lbry/wallet/rpc/session.py +++ b/lbry/wallet/rpc/session.py @@ -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)