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)