diff --git a/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp b/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp index 2db52e3cf7..ec01346ef0 100644 --- a/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp +++ b/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp @@ -237,6 +237,7 @@ void DataLogBackgroundWriter::StartLogFile(WriterThreadState& state) { WPI_ERROR(m_msglog, "Insufficient free space ({} available), no log being saved", FormatBytesSize(state.freeSpace)); + m_state = kStopped; } else { // try preferred filename, or randomize it a few times, before giving up for (int i = 0; i < 5; ++i) {