diff options
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbintf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index e0f45a7e18..6fba828808 100755 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -18,7 +18,8 @@ CDbxSQLite::~CDbxSQLite() UninitSettings(); if (m_db) { - rc = sqlite3_close(m_db); + while ((rc = sqlite3_close(m_db)) == SQLITE_BUSY) + ::SleepEx(50, TRUE); logError(rc); m_db = nullptr; |