In 1979, following the Soviet-backed Vietnamese invasion of Democratic Kampuchea, Romania became the first Warsaw Pact member to cast an anti-Soviet vote in the United Nations General Assembly. Romania also continued to recognize the Khmer Rouge as the legitimate representative of Cambodia in the UN; also, Romania had been one of the ten countries that had maintained an embassy in Cambodia during Pol Pot's reign. That same year, the Soviet Union invaded Afghanistan and Romania voted in favour of the UN General Assembly resolution calling for the immediate and unconditional withdrawal of Soviet troops, Romania broke with its Warsaw Pact allies and abstained. And one month later, at a meeting of communist states in Sofia, Romania joined the Democratic People's Republic of Korea (North Korea) in refusing to endorse the invasion.