Fixed a bug.

This commit is contained in:
Martin Preuss
2023-03-08 23:01:48 +01:00
parent 614a942a0e
commit 0dab60f4e6

View File

@@ -431,7 +431,7 @@ int AQH_MsgEndpoint_DiscardInput(AQH_MSG_ENDPOINT *ep)
do {
rv=read(ep->fd, buffer, sizeof(buffer));
} while( (rv>0 || (rv<0) && errno==EINTR));
} while(rv>0 || (rv<0 && errno==EINTR));
if (rv<0 && errno!=EAGAIN && errno!=EWOULDBLOCK) {
DBG_ERROR(AQH_LOGDOMAIN, "Error on read(): %s (%d)", strerror(errno), errno);
return GWEN_ERROR_IO;