diff --git a/includes/class-twp-auto-updater.php b/includes/class-twp-auto-updater.php index a09f4cf..46470f0 100644 --- a/includes/class-twp-auto-updater.php +++ b/includes/class-twp-auto-updater.php @@ -177,7 +177,6 @@ class TWP_Auto_Updater { $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); - curl_close($ch); if (!$response || $http_code !== 200) { error_log("TWP Auto-Updater: Gitea API returned status $http_code"); diff --git a/includes/class-twp-fcm.php b/includes/class-twp-fcm.php index 84a494e..9112ef6 100644 --- a/includes/class-twp-fcm.php +++ b/includes/class-twp-fcm.php @@ -119,7 +119,6 @@ class TWP_FCM { $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); - curl_close($ch); if ($http_code !== 200) { error_log("TWP FCM: Failed to send notification. HTTP $http_code: $response"); @@ -173,7 +172,6 @@ class TWP_FCM { $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); - curl_close($ch); if ($http_code !== 200) { error_log("TWP FCM: Failed to get access token. HTTP $http_code: $response");