Then the war will continue until Russia gains the advantage or a golden bridge to backdown is offered.
These are not the only possible victory conditions, overwhelming defeat and expulsion of the occupiers would also end the war. Russia does not have limitless troops and resources, nor does their morale seem to be very high.