disable reconnectTimer when reconnectPeriod is 0.