diff --git a/modules/es/fsw/src/cfe_es_perf.c b/modules/es/fsw/src/cfe_es_perf.c index c6a86ad76..436f0bdff 100644 --- a/modules/es/fsw/src/cfe_es_perf.c +++ b/modules/es/fsw/src/cfe_es_perf.c @@ -462,11 +462,7 @@ bool CFE_ES_RunPerfLogDump(uint32 ElapsedTime, void *Arg) { CFE_ES_FileWriteByteCntErr(State->DataFileName, BlockSize, Status); - /* skip to cleanup */ - if (State->CurrentState < CFE_ES_PerfDumpState_CLEANUP) - { - State->PendingState = CFE_ES_PerfDumpState_CLEANUP; - } + State->PendingState = CFE_ES_PerfDumpState_CLEANUP; } else {