JFJochReceiverService: Allow for binning == 0
This commit is contained in:
@@ -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