Commit 18f4713f authored by oroulet's avatar oroulet

memory leak: remove request_id from callbackmap after use in ua_client.py

parent c6d1eb7d
......@@ -156,6 +156,7 @@ class UASocketProtocol(asyncio.Protocol):
)
except asyncio.InvalidStateError:
raise ua.UaError(f"Future for request id {request_id} is already done")
del self._callbackmap[request_id]
def _create_request_header(self, timeout=1) -> ua.RequestHeader:
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment