diff --git a/src/flightRecorder.cpp b/src/flightRecorder.cpp index 0707addf4..6c9676204 100644 --- a/src/flightRecorder.cpp +++ b/src/flightRecorder.cpp @@ -549,6 +549,10 @@ class Recording { httplib::Result result; for (int i = 0; i < 3; i++) { result = cli->Post("/profiling/v1/input", form); + if (result == NULL) { + Log::warn("unable to do http request: %s", httplib::to_string(result.error()).c_str()); + continue; + } if (result->status / 100 == 2) { break; } else {