It ended a diplomatic drought between the two nations , at odds for months over North Korea 's nuclear program and American demands that it cease .