LibreY

- privacy respecting meta search engine
git clone git://git.acid.vegas/LibreY.git
Log | Files | Refs | Archive | README | LICENSE

commit 4a98228a90d3159a80a4dc7d300af1415ce3b96c
parent 37f77e5e8d7a02534809e607e8e33dd5d6dca389
Author: davidovski <david@davidovski.xyz>
Date: Wed, 30 Aug 2023 22:06:36 +0100

Properly remove google request if on cooldown

Diffstat:
Mengines/text/text.php | 1+

1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/engines/text/text.php b/engines/text/text.php
@@ -26,6 +26,7 @@
             if (has_cooldown($this->engine, $this->opts->cooldowns) && !has_cached_results($this->engine_request->url)) {
                 // TODO dont add it in the first place
                 curl_multi_remove_handle($mh, $this->engine_request->ch);
+                $this->engine_request = null;
                 return;
             }