What I suspect is happening is that the flame is being blown out. The fridge's logic board will detect that, and attempt to re-light it. It'll only try that a given number of unsuccessful tries, then go into "Lock Out". Once it's locked out, you cycle the system by turning it Off then back ON. That gives you another set of attempts.
Make/Model of Fridge might help us to help you.
If God's Your Co-Pilot Move Over, jd
2003 Jayco Escapade 31A on 2002 Ford E450 V10 4R100 218" WB