(a) In General.— Except as provided in subsection (b), educational assistance may not be provided under this chapter, or if being provided under this chapter, shall be terminated
(1) if the member is receiving financial assistance under section
2107 of this title as a member of the Senior Reserve Officers Training Corps program; or
(2) when the member separates from the Ready Reserve as provided in section
16164 (a)(1) of this title, or upon completion of the period provided for in section
16164 (a)(2) of this title, as applicable.