From 6f60bc9ec9042be7f145fa3f7d8ec3e7bc77ebaf Mon Sep 17 00:00:00 2001 From: Helmut Poppen Date: Tue, 15 Mar 2022 22:05:05 +0100 Subject: [PATCH 1/2] 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); From c05e1698174e9807bb27ab051a5dd5789c5ce9c6 Mon Sep 17 00:00:00 2001 From: Helmut Poppen Date: Tue, 15 Mar 2022 22:05:32 +0100 Subject: [PATCH 2/2] add data_backup to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4274325..a766ac8 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /package /data +/data_backup