Skip to content

Commit

Permalink
Fix incorrect evaluation of ASYNC_PING_TIMEOUT for #542
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Apr 28, 2016
1 parent bc7e4c6 commit 3899356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mysql_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ MDB_ASYNC_ST MySQL_Connection::handler(short event) {
}
if (async_exit_status) {
if (myds->sess->thread->curtime >= myds->wait_until) {
next_event(ASYNC_PING_CONT);
} else {
NEXT_IMMEDIATE(ASYNC_PING_TIMEOUT);
} else {
next_event(ASYNC_PING_CONT);
}
} else {
NEXT_IMMEDIATE(ASYNC_PING_END);
Expand Down

0 comments on commit 3899356

Please sign in to comment.