diff --git a/core/general-client/src/general_model.cpp b/core/general-client/src/general_model.cpp index d1ad58d462025c205eb669b3aa50864051d414ba..f2e0d376cd28d06dcb235b97da5608ea53dd87d5 100644 --- a/core/general-client/src/general_model.cpp +++ b/core/general-client/src/general_model.cpp @@ -363,7 +363,7 @@ int PredictorClient::batch_predict( res.Clear(); if (_predictor->inference(&req, &res) != 0) { LOG(ERROR) << "failed call predictor with req: " << req.ShortDebugString(); - exit(-1); + return -1; } else { client_infer_end = timeline.TimeStampUS(); postprocess_start = client_infer_end;