diff --git a/src/Client/HedgedConnections.cpp b/src/Client/HedgedConnections.cpp index 9b2a525e23f..a163ceba4a2 100644 --- a/src/Client/HedgedConnections.cpp +++ b/src/Client/HedgedConnections.cpp @@ -362,7 +362,7 @@ int HedgedConnections::getReadyFileDescriptor(AsyncCallback async_callback) epoll_event event; event.data.fd = -1; size_t events_count = 0; - bool blocking = async_callback ? false : true; + bool blocking = !static_cast(async_callback); while (events_count == 0) { events_count = epoll.getManyReady(1, &event, blocking);