Disappearance of superconductivity and critical resistance in thin indium films