Skip to content

Commit 3899356

Browse files
committed
Fix incorrect evaluation of ASYNC_PING_TIMEOUT for #542
1 parent bc7e4c6 commit 3899356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mysql_connection.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,9 @@ MDB_ASYNC_ST MySQL_Connection::handler(short event) {
512512
}
513513
if (async_exit_status) {
514514
if (myds->sess->thread->curtime >= myds->wait_until) {
515-
next_event(ASYNC_PING_CONT);
516-
} else {
517515
NEXT_IMMEDIATE(ASYNC_PING_TIMEOUT);
516+
} else {
517+
next_event(ASYNC_PING_CONT);
518518
}
519519
} else {
520520
NEXT_IMMEDIATE(ASYNC_PING_END);

0 commit comments

Comments
 (0)