summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-20 17:09:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-20 17:09:38 +0300
commit38ed1a7c2395e8bb6b9e8a29646e6d068edf6263 (patch)
tree638510269516a402cec7e3162e208ee17bfe99e5 /plugins/Dbx_sqlite/src
parent8976d32a2eda47013573c7e32132b19cf2949c15 (diff)
fixes #2694 (Miranda leaves sqlite profile keeping it locked)
Diffstat (limited to 'plugins/Dbx_sqlite/src')
-rwxr-xr-xplugins/Dbx_sqlite/src/dbintf.cpp3
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;