From 08a1ad65abe19bfef38f915c8113172769565691 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)