That was before the revolution. The revolutionary government still honored the deal, but that's been obviously a losing move for a while. The whole Middle East recognizes that, just look at how many countries Pakistan has sharing agreements with recently.
Treaty obligations do not disappear with a revolution