What convinced the communists to end the Korean War?

What convinced the communists to end the Korean War?