From 9bd42502f62125906706b49178e471ceb36db4c9 Mon Sep 17 00:00:00 2001
From: znone <glyc@sina.com.cn>
Date: Wed, 06 Jun 2018 05:30:54 +0000
Subject: [PATCH] 修正在处理MySQL结果集时,移动字符串时的问题。
---
include/qtl_database_pool.hpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/include/qtl_database_pool.hpp b/include/qtl_database_pool.hpp
index 1d04e2f..73ca349 100644
--- a/include/qtl_database_pool.hpp
+++ b/include/qtl_database_pool.hpp
@@ -29,7 +29,14 @@
if(m_background_thread.joinable())
{
m_stop_thread=true;
- m_background_thread.join();
+ try
+ {
+ m_background_thread.join();
+ }
+ catch (std::system_error&)
+ {
+ //igore the error
+ }
}
clear();
}
--
Gitblit v1.9.3