# How to disable port2 interrupt when port 1 interrupt is active?

I am using MSP430G2553 with IAR.

I would like to make an IR communication system which has a transmitter-receiver on both sides. When I try to send my signal, the receiver on the opposite can't capture my signal sometimes because my receiver captures it. I don't know to when i should disable and re-enable it?

#pragma vector=PORT1_VECTOR
_interrupt void Port_1(void)
{