Infrared remote library - programming issue

Hello all,

I'm trying to control a 10w LED with a infrared remote control and it went fine so far but now I have a programming problem.

My sketch structure is something like this:

if (irrecv.decode(&results)) { //test if a button was pressed
if (results.value == value1) do something1; //increase brightness
if (results.value == value2) do something2; //decrease brightness
if (results.value == value3) { // shutdown timer
for (...) {
countdown_timer;
}
}
}

The problem is that I also need to monitor the infrared sensor when the shutdown timer is executing.
I can't place another if (irrecv.decode(&results)) instance as it will always be true.

Sorry for the newbie question, my programming skill is very basic.

Can anyone guide me to how I should do it?

Oh, nevermind... I added irrecv.resume() at the start of the for loop and now it works.