diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-20 17:09:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-20 17:09:38 +0300 |
commit | 38ed1a7c2395e8bb6b9e8a29646e6d068edf6263 (patch) | |
tree | 638510269516a402cec7e3162e208ee17bfe99e5 /plugins/Dbx_sqlite/src | |
parent | 8976d32a2eda47013573c7e32132b19cf2949c15 (diff) |
fixes #2694 (Miranda leaves sqlite profile keeping it locked)
Diffstat (limited to 'plugins/Dbx_sqlite/src')
-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; |