database: flip to recursive_mutex to allow nested locks (#1937)

* Fix crash from db locking

* Change db lock to use recursive_mutex
This commit is contained in:
Corey D
2023-03-29 20:03:03 -07:00
committed by GitHub
parent 5ba9816377
commit c5087d7a39
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ public:
}
private:
sqlite3 *m_sq3;
std::mutex m_FullLock;
std::recursive_mutex m_FullLock;
bool m_Persistent;
String m_LastError;
int m_LastErrorCode;