Update deprecated methods

This commit is contained in:
Alexey Rybalchenko
2019-02-08 14:43:10 +01:00
committed by Dennis Klein
parent ec519cb318
commit b7125b746e
7 changed files with 13 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ void FairMQProxy::Run()
{
if (fMultipart)
{
while (CheckCurrentState(RUNNING))
while (!NewStatePending())
{
FairMQParts payload;
if (Receive(payload, fInChannelName) >= 0)
@@ -61,7 +61,7 @@ void FairMQProxy::Run()
}
else
{
while (CheckCurrentState(RUNNING))
while (!NewStatePending())
{
unique_ptr<FairMQMessage> payload(fTransportFactory->CreateMessage());
if (Receive(payload, fInChannelName) >= 0)