If you're talking about the switch on the heater itself, that turns off electric and has nothing to do with propane or flame. If it's a different switch then that depends on what it's wired to, but may be flame related. But you didn't state your problem well enough for me to follow, so perhaps a little more info on your problem -- or maybe someone can read between the lines.