Set the Active Job name to NULL when the context file name is NULL. If the job name is not cleaned up before we start, it causes issues with shutting down the OTA agent.
@@ -2647,6 +2647,7 @@ static OTA_FileContext_t * prvParseJobDoc( const char * pcJSON,
}
else
{
+ xOTA_Agent.pcOTA_Singleton_ActiveJobName = NULL;
OTA_LOG_L1( "[%s] Ignoring job without ID.\r\n", OTA_METHOD_NAME );
}
}
