mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-03 03:57:49 +00:00
fix(PollSet): wakeup fd is never read #3708
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user