diff --git a/python3_anticaptcha/get_answer.py b/python3_anticaptcha/get_answer.py index 9b128fb..7ff8719 100644 --- a/python3_anticaptcha/get_answer.py +++ b/python3_anticaptcha/get_answer.py @@ -23,9 +23,11 @@ def get_sync_result(result_payload: dict, sleep_time: int): time.sleep(sleep_time) else: captcha_response.update({"taskId": result_payload["taskId"]}) + session.close() return captcha_response else: captcha_response.update({"taskId": result_payload["taskId"]}) + session.close() return captcha_response