A resonator fiber-optic gyro (RFOG) is being pursued because of its theoretical potential to meet navigation-grade performance with small size, high precision, and lower cost. The stability of the RFOG operation is based on the synchronization of laser frequency to the fiber ring resonator (FRR) resonance frequency. Frequency tracking out-of-lock will lead to peak pulse and zero-bias change at the output of the RFOG, which seriously degrades the performance. First, the influence mechanism of frequency tracking out-of-lock is analyzed. The change of current and temperature in frequency tracking and the symmetry change caused by backscatter and polarization are the main reasons for the peak pulse and zero-bias error. Second, a scheme of out-of-lock control of the RFOG based on temperature closed-loop operation using digital signal processing is proposed. The improved scheme, signal processing, and implementation method are investigated in detail. Finally, a RFOG prototype is assembled and tested, and 10 min tracking of the laser frequency to the FRR's single-resonance frequency is realized by temperature closed-loop operation. The static performance of the RFOG over 1 h shows that the RFOG output errors caused by frequency tracking out-of-lock are successfully eliminated. The output peak pulse is reduced from 3000 to 200 deg/h, the zero bias is eliminated from 50 to 600 deg/h to 0, and the bias stability of the RFOG is improved from 15.2 to 1.85 deg/h, which indicates a remarkable advance in the performance of the RFOG to satisfy civil navigation application requirements.