mirror of
https://github.com/unraid/api.git
synced 2026-04-28 03:01:12 -05:00
fix: reduce timeout duration in UnraidCheck class
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ class UnraidOsCheck
|
||||
if ($replaceKey->check($forceReplaceKeyCheck)) {
|
||||
// if we have a new key, we need to wait for emhttp to update var.ini with the new regExp value
|
||||
$startTime = time();
|
||||
$timeout = 30; // 30 seconds
|
||||
$timeout = 5; // seconds
|
||||
|
||||
while (time() - $startTime < $timeout) {
|
||||
$currentVar = (array)@parse_ini_file(self::VAR_INI_FILE);
|
||||
|
||||
Reference in New Issue
Block a user