Fix the error of not being able to configure `auto_restart_interval` as infinity