mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix a bug in nanomsg implementation when sending empty messages.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
f13bb5995d
commit
35ff6c8fc8
@@ -143,6 +143,7 @@ int FairMQSocketNN::Receive(FairMQMessage* msg, const string& flag)
|
||||
{
|
||||
fBytesRx += rc;
|
||||
++fMessagesRx;
|
||||
msg->Rebuild();
|
||||
msg->SetMessage(ptr, rc);
|
||||
static_cast<FairMQMessageNN*>(msg)->fReceiving = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user