The heater should have a flow switch in it so it only comes on when the pump is on. If it didn't it would have cooked itself.