Fix a stack-overflow error when high concurrency happening on sqlite3 (#633)

This commit is contained in:
An Tao 2020-11-22 20:47:38 +08:00 committed by GitHub
parent 4ca90f2415
commit 69d687dbcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ void Sqlite3Connection::execSql(
std::function<void(const std::exception_ptr &)> &&exceptCallback)
{
auto thisPtr = shared_from_this();
loopThread_.getLoop()->runInLoop(
loopThread_.getLoop()->queueInLoop(
[thisPtr,
sql = std::move(sql),
paraNum,