mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-30 02:37:57 +08:00
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
Block a user