mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Add proper return value in set timeout
This commit is contained in:
parent
ada23500be
commit
6dc4dc84b3
|
@ -553,11 +553,9 @@ bool FairMQChannel::SetSendTimeout(const int timeout)
|
|||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
LOG(ERROR) << "SetSendTimeout() failed - socket is not initialized!";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
int FairMQChannel::GetSendTimeout() const
|
||||
|
@ -583,11 +581,9 @@ bool FairMQChannel::SetReceiveTimeout(const int timeout)
|
|||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
LOG(ERROR) << "SetReceiveTimeout() failed - socket is not initialized!";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
int FairMQChannel::GetReceiveTimeout() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user