Fix build

This commit is contained in:
Pavel Kruglov 2021-03-26 21:25:30 +03:00
parent 2979feb23f
commit 90afc9ce2f

View File

@ -362,7 +362,7 @@ int HedgedConnections::getReadyFileDescriptor(AsyncCallback async_callback)
epoll_event event; epoll_event event;
event.data.fd = -1; event.data.fd = -1;
size_t events_count = 0; size_t events_count = 0;
bool blocking = async_callback ? false : true; bool blocking = !static_cast<bool>(async_callback);
while (events_count == 0) while (events_count == 0)
{ {
events_count = epoll.getManyReady(1, &event, blocking); events_count = epoll.getManyReady(1, &event, blocking);