You know when you put on a dream mask gadget and it detects your REM period and flashes lights in your eyes .

My question is is the lights suppose to flash through out your dream? Wont that ruin your dream? Or does it turn of after a while?

I dont have any of theses mask, but this is something I never really understood