Ah, the "greater crime" doctrine. The guilty are free to go, so long as they can prove that the victim had already suffered at someone else's hands. After all, in civil law, only the first transgression counts.
Even during the wars with the French and Americans, the Vietnamese were quite wary of China. They knew the westerners would leave, but China would always threaten them.