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:
DL6ER
2019-08-07 21:24:05 +02:00
parent 71fc7a4791
commit d568b49fb1

View File

@@ -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;
}