leghari 's resignation also came hours after his meeting with the powerful chief of the army staff jahangir karamat , who has been acting as the mediator in the four-month-old confrontation between the government and the judiciary .