fix(PollSet): wakeup fd is never read #3708

This commit is contained in:
Alex Fabijanic
2022-07-25 14:02:32 +02:00
parent f164cc4bfd
commit 3455099924

View File

@@ -208,7 +208,8 @@ public:
{
uint64_t val;
#ifdef WEPOLL_H_
if (_pSocket) _pSocket->receiveBytes(&val, sizeof(val));
if (_pSocket && _pSocket->available())
_pSocket->impl()->receiveBytes(&val, sizeof(val));
#else
read(_eventfd, &val, sizeof(val));
#endif