mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Add busy timeout so adding/removing domains does not immediately fail in case the database is busy.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -52,6 +52,10 @@ function SQLite3_connect($filename, $mode=SQLITE3_OPEN_READONLY)
|
||||
{
|
||||
die("Error connecting to database");
|
||||
}
|
||||
|
||||
// Add busy timeout so methods don't fail immediately when, e.g., FTL is currently reading from the DB
|
||||
$db->busyTimeout(5000);
|
||||
|
||||
return $db;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user