From bdf5c973aa82f7c637f25b2bdd99e553ba1c3a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:45:07 +0800 Subject: [PATCH] dump --- LunaTranslator/LunaTranslator/network/libcurl/requester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/network/libcurl/requester.py b/LunaTranslator/LunaTranslator/network/libcurl/requester.py index 57f57d47..a92eeb54 100644 --- a/LunaTranslator/LunaTranslator/network/libcurl/requester.py +++ b/LunaTranslator/LunaTranslator/network/libcurl/requester.py @@ -176,9 +176,10 @@ class Requester(Requester_common): curl = self.curl __ = autostatus(self) else: - curl = self.initcurl() + curl = AutoCURLHandle(curl_easy_duphandle(self.curl)) __ = 0 + curl_easy_reset(curl) curl_easy_setopt(curl, CURLoption.COOKIEJAR, "") if timeout: curl_easy_setopt(curl, CURLoption.TIMEOUT_MS, timeout)