From 6f60bc9ec9042be7f145fa3f7d8ec3e7bc77ebaf Mon Sep 17 00:00:00 2001 From: Helmut Poppen Date: Tue, 15 Mar 2022 22:05:05 +0100 Subject: [PATCH] Fix #20 Add timeout to push server call --- src/structure/components/com_sportsmanager/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structure/components/com_sportsmanager/api.php b/src/structure/components/com_sportsmanager/api.php index 900cde2..ef26937 100644 --- a/src/structure/components/com_sportsmanager/api.php +++ b/src/structure/components/com_sportsmanager/api.php @@ -42,6 +42,7 @@ function notifyChange($data) { 'Authorization: ' . $key, 'Content-Type: application/json', ), + CURLOPT_TIMEOUT => 2, CURLOPT_POSTFIELDS => json_encode($data), )); $resp = curl_exec($ch);