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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
LOG(ERROR) << "SetSendTimeout() failed - socket is not initialized!";
|
LOG(ERROR) << "SetSendTimeout() failed - socket is not initialized!";
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int FairMQChannel::GetSendTimeout() const
|
int FairMQChannel::GetSendTimeout() const
|
||||||
|
@ -583,11 +581,9 @@ bool FairMQChannel::SetReceiveTimeout(const int timeout)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
LOG(ERROR) << "SetReceiveTimeout() failed - socket is not initialized!";
|
LOG(ERROR) << "SetReceiveTimeout() failed - socket is not initialized!";
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int FairMQChannel::GetReceiveTimeout() const
|
int FairMQChannel::GetReceiveTimeout() const
|
||||||
|
|
Loading…
Reference in New Issue
Block a user