From 9fddeaebb54ef8cd51a98b915dbad34c45b5ee81 Mon Sep 17 00:00:00 2001 From: c3b5aw Date: Fri, 9 Sep 2022 21:18:14 +0200 Subject: [PATCH] fix: client session unclosed correctly --- graphinder/pool/detectors.py | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/graphinder/pool/detectors.py b/graphinder/pool/detectors.py index 8dc70f6..1b4ba30 100644 --- a/graphinder/pool/detectors.py +++ b/graphinder/pool/detectors.py @@ -275,6 +275,7 @@ async def is_gql_endpoint( status = await detector.detect() - if headers and has_opened_new_session: + if has_opened_new_session: await session.close() + return status diff --git a/pyproject.toml b/pyproject.toml index a6e5d58..95ae511 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "graphinder" -version = "1.11.1" +version = "1.11.2" description = "Escape Graphinder" authors = ["Escape Technologies SAS "] maintainers = [