Fix #20 Add timeout to push server call

This commit is contained in:
Helmut Poppen
2022-03-15 22:05:05 +01:00
parent 08571df21e
commit 6f60bc9ec9
@@ -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);