mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Fix bug in nanomsg implementation of poller check.
This commit is contained in:
parent
35ff6c8fc8
commit
dc6fb4698c
|
@ -33,8 +33,6 @@ void FairMQExample5Server::Run()
|
|||
{
|
||||
while (CheckCurrentState(RUNNING))
|
||||
{
|
||||
boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
|
||||
|
||||
unique_ptr<FairMQMessage> request(fTransportFactory->CreateMessage());
|
||||
|
||||
if (fChannels.at("data").at(0).Receive(request) > 0)
|
||||
|
|
|
@ -130,7 +130,7 @@ void FairMQPollerNN::Poll(int timeout)
|
|||
|
||||
bool FairMQPollerNN::CheckInput(const int index)
|
||||
{
|
||||
if (items[index].revents & NN_POLLIN)
|
||||
if (items[index].revents & (NN_POLLIN | NN_POLLOUT))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user