mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Add proper return value in set timeout
This commit is contained in:
committed by
Mohammad Al-Turany
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
LOG(ERROR) << "SetReceiveTimeout() failed - socket is not initialized!";
|
||||
return false;
|
||||
}
|
||||
|
||||
int FairMQChannel::GetReceiveTimeout() const
|
||||
|
Reference in New Issue
Block a user