diff --git a/orm_lib/src/mysql_impl/MysqlConnection.cc b/orm_lib/src/mysql_impl/MysqlConnection.cc index 5419d6d2..8b273820 100644 --- a/orm_lib/src/mysql_impl/MysqlConnection.cc +++ b/orm_lib/src/mysql_impl/MysqlConnection.cc @@ -211,7 +211,7 @@ void MysqlConnection::handleEvent() if (revents & POLLPRI) status |= MYSQL_WAIT_EXCEPT; status = (status & _waitStatus); - if (status == 0) + if (status == 0 && _waitStatus != 0) return; MYSQL *ret; if (_status == ConnectStatus_Connecting)