JFJochReceiverService: Allow for binning == 0
This commit is contained in:
1 parent
355e53d424
commit
dc2746a610
1 file changed
-2
@@ -133,8 +133,6 @@ JFJochReceiverService::GetDataProcessingPlots(grpc::ServerContext *context, cons
|
||||
JFJochProtoBuf::Plot *response) {
|
||||
// Need to hold mutex, as receiver might not exist here, if state is idle
|
||||
std::unique_lock<std::mutex> ul(state_mutex);
|
||||
if (request->binning() <= 0)
|
||||
return {grpc::StatusCode::ABORTED, "Binning must be > 0"};
|
||||
if (receiver)
|
||||
*response = receiver->GetPlots(*request);
|
||||
return grpc::Status::OK;
|
||||
|
||||
Reference in new issue
Block a user