Fix crash when query in query tab returns error
This commit is contained in:
parent
1df8455af5
commit
ec8cec105f
1 changed files with 2 additions and 2 deletions
|
|
@ -335,7 +335,7 @@ bool ASyncDBConnectionThread::consumeResultInput()
|
|||
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();
|
||||
std::lock_guard<std::mutex> lg(m_commandQueue.m_mutex);
|
||||
|
|
@ -354,7 +354,7 @@ bool ASyncDBConnectionThread::consumeResultInput()
|
|||
}
|
||||
else {
|
||||
// error during consume
|
||||
|
||||
auto error_msg = m_connection.getErrorMessage();
|
||||
}
|
||||
return finished;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue