mirror of
https://github.com/unraid/webgui.git
synced 2026-01-27 20:19:10 -06:00
fix: updatedns: delete cache file when unable to connect
This commit is contained in:
@@ -148,7 +148,7 @@ $error = curl_error($ch);
|
||||
curl_close($ch);
|
||||
|
||||
if ($result === false) {
|
||||
// TBD: delete $datafile?
|
||||
@unlink($datafile);
|
||||
response_complete(500, '{"error":"'.$error.'"}');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user