The Empire had been winning the war for nearly 30 years before the treaty, THEN that came along and the war ended in a truce, leading to the 10-year cold war. When it started again, The Empire was winning through Act 1 and 2.
Do not whine about losing now
. It's about damn time the Republic got it's freaking act together.