Fix a busy loop bug when connections to mysql server are timeout (#286)
This commit is contained in:
parent
e7b6ba27bb
commit
4868aa964d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue