The governments of India and Pakistan pulled back from the brink over Kashmir because neither can afford a full-scale war. Bellicose rhetoric and a climate of strident nationalism have helped both governments as they face problems on the domestic front.
https://youtube.com/watch?v=6PYyPFr5USE&pp=0gcJCdgAo7VqN5tD