The Mormon Church announced Wednesday that it would continue its close association with the Boy Scouts for now, ending speculation that it would sever ties because of the Scouts’s decision last month to let openly gay men and women serve as leaders.

In July, bowing to growing legal and public pressures, the governing board of the Boy Scouts of America voted to permit openly gay adult leaders. That followed its decision in 2013 to permit participation by gay youths.

But in a compromise aimed at preventing defections by religious conservatives — including the Mormons, who are the largest single sponsor of Boy Scout units — the board said that local sponsors with religious objections could select volunteer leaders in accordance with their own beliefs.

At the time, the response from the Mormons was unexpectedly sharp and included a threat to leave the Scouts anyway.