On an ordinary Saturday night, the Soi Cowboy red-light district in Bangkok is ablaze with neon lights as skimpily clad women in go-go boots chat up tourists and twirl seductively around poles.

But the decadent flesh parade came to an abrupt halt Thursday when soldiers marched in and shut the dance bars down. It was a gesture of respect for the country’s long-ruling monarch, King Bhumibol Adulyadej, who died Thursday afternoon after a long illness and 70 years on the throne.

Soon, word came down from the country’s prime minister and head of its military: Thailand would be in mourning for a year, flags would be at half-staff and “joyful events” should be avoided for 30 days.

Although the government made it clear that visitors should continue with their travel plans — as long as they try to dress and act respectfully — bars and restaurants have since been closed, loud music avoided and alcohol sometimes difficult to come by. All of this has put a damper on one of the world’s most popular party spots.

About 30 million visitors came to Thailand last year, a number that is expected to reach a record high this year because of an influx from China. Tourism contributed $81 billion to the country’s gross domestic product in 2015, nearly 21 percent, according to the World Travel and Tourism Council.

Workers worry about lost wages and tour companies and airlines about declining business — although most experts think the impact on tourism will be modest in the long term.

The V8 Diner in the Sukhumvit area of Bangkok was closed for two days and reopened Sunday, for example, losing about $2,800 of business in the process.

“We didn’t feel like working anyway in this kind of mood,” said Bam, the manager. “Everybody was crying.” Like most of those interviewed for this article, she declined to give her full name because of concern about Thailand’s strict laws against defaming the king.

Nobody was really sure when the night clubs — especially the fleshy ones — would reopen. On Monday, one sex worker said hopefully. In a week, said Maya, the manager of Bangkok Bunnies A Go Go, who also did not feel comfortable giving her last name. Many of her dancers have left the city to return to their home villages to wait out the break, she said.

One Australian bar owner in the bustling Khaosan Road area, which is popular with backpackers, gave his customers paper cups to discreetly sip their beer in case police were watching.

On the Soi Cowboy strip Saturday night, the lane of about 40 night clubs was eerily silent and dark except for the occasional bright light of a street vendor passing through with a rattling cart.

As near as anybody could remember, the place had been open nightly since a retired U.S. airman named T.G. “Cowboy” Edwards, who was partial to a straw boater, opened up the first bar there in 1977.

Even through military coups.

“This is incredible,” said Fabrice, an Air France flight attendant who came Saturday night to take in the historic shuttering. “But we know how the king is in the heart of the Thai people. We understand that and appreciate that. It’s something we’ve lost in Europe.”

Although the go-go bars were closed, the world’s oldest profession continued apace on Bangkok’s streets. Many of the sex workers wore black clothes in honor of the late monarch, as their countrymen had been asked to do.

One, Chanhom Srikaew, 40, said that many foreign travelers had left Bangkok after the go-go bars were shut and headed to the beach or other Southeast Asian countries.

“They’re waiting for the good times to come back,” Chanhom said. Another sex worker plying her trade on the same street Sunday said she had doubled her business to more than $200 a day because the men had nowhere else to go.

Hugo, a semiretired carpet joiner from Sydney, said that on Saturday he had become a bit morose sitting in a deserted pub among other middle-aged men with only their mobile phones for company. He had to stay in the city because of a medical appointment, he said, but wished he could have left.

“If I wasn’t already committed Friday night I would have picked up and gone to Laos or Cambodia. If I had known it was going to be like this,” he said, waving his arm at the empty street.

On Saturday, the Tourism Authority of Thailand reiterated that the country was in a period of national mourning and advised travelers that thousands of mourners are continuing to gather around the Grand Palace in Bangkok for the royal religious rites and to pay respects to the king.

Several major festivals and events have been canceled or postponed, including the debauched “full moon” parties that attract hundreds of tourists to Thailand’s shimmering beaches.

Daniel Fraser, managing director of the Bangkok-based tour company Smiling Albino, said that his group had not received any cancellations yet for upcoming trips but that he expects that things will be quieter than normal for the next few weeks before picking up again during the holiday season.

“Thailand and Thais are incredibly resilient,” Fraser said. “Having lived here for over 16 years, I have seen a number of dramatic events, including royal deaths, natural disasters and epidemics. In each case, Thai pragmatism, and sense of duty, prevails, and the nation normalizes very quickly.”

David Scowsill, president and chief operating officer of the World Travel and Tourism Council, said the succession of the king’s heir, Crown Prince Vajiralongkorn, will bring a “calm transition” to the country.

The prince is not likely to be crowned until after his father’s grand cremation ceremony, a year away.