Added getResultNoThrow as the AsyncDBCOnnection doesn't like exceptions.
This commit is contained in:
parent
43f8117bbd
commit
471139ba4d
3 changed files with 13 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ void ASyncDBConnection::async_query_handler(boost::system::error_code ec, std::s
|
|||
bool finished = false;
|
||||
if (m_connection.consumeInput()) {
|
||||
while ( ! finished && ! m_connection.isBusy()) {
|
||||
auto res = m_connection.getResult();
|
||||
auto res = m_connection.getResultNoThrow();
|
||||
qint64 ms = m_timer.restart();
|
||||
on_result(res, ms);
|
||||
if (res == nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue